utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
591 stars 39 forks source link

Annotations naming #211

Open Humberd opened 3 years ago

Humberd commented 3 years ago

Currently we are required to use annotations with a prefix Register, for example @RegisterClass, @RegisterFunction, etc. It looks like naming it with a prefix Godot, for example @GodotClass, @GodotFunction would be more clear and indicative that those symbols Godot is aware of. What do you think?

edit Another argument for is that annotations are often nouns, not verbs, since they don't do anything by themselves.

chippmann commented 3 years ago

Hmm not sure about the Godot prefix though. This sounds more like this was a class or function from godot. Or is "owned" by godot. If we would rename it i'd suggest Registered prefix. As it indicates that the class or member is registered in godot and not owned by it.