Naming conventions and Properties
Submitted by IagoSRL
Link to original bug (#581116)
Description
Write a "naming conventions" for vala (vala core/framework, library's bindings, vala applications,...). For general purpose, and special note about Properties.
Other information: I'm looking for documentation 'naming conventions' for vala and I don't find, if exits, where is it? I see that the most of names are c-style, but attributes, properties, errors, namespaces, classes, structs,..., I think need a differential style.
Reading the API from valadocs I note there are 'setters' and 'getters' methods instead vala properties, Why? When must use methods and when properties? An example is the Path class (http://valadoc.org/?pkg=glib-2.0&element=GLib.Path) method [get_basename] that is a getter and setter method.
Resources: http://en.wikipedia.org/wiki/Identifier_naming_convention http://www.irritatedvowel.com/Programming/Standards.aspx