-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all,
All the Vala code I've seen so far use 8-space indentation, with Tabs not converted to spaces. Is this documented somewhere as being the preferred style? I'm packaging Vala Toys for gedit right now, and it uses this for its project generator, and when editing Vala source, any attempt to change the indentation gets reset to 8-space/TAB when the file is saved. Granted, this is probably a bug (that I'll report), but a clarification would be useful. Googling for Vala indentation yields this interesting discussion at gupnp, which uses Vala: http://lists.o-hand.com/gupnp/0421.html It seems to suggest that Vala code in the wild uses 4-space indentation, which probably ends up more readable (less overflowing) than 8-space on most screens. I personally prefer 2-space indentation when dealing with languages with compact syntax, stretching to 4 for C-like languages. The tutorial code I've seen so far seems to use 8-space, and some of them are over the 80-char width limit, making it rather awkward to edit on the console. Incidentally, would it be a good idea to move the tutorial code to a module under version control? That way they can be matched to different Vala releases, and developers can track Vala's evolution by tracking changes in the sample programs. Regards, - -- miʃel salim • http://hircus.jaiku.com/ IUCS • msa...@cs.indiana.edu Fedora • sali...@fedoraproject.org MacPorts • hir...@macports.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkmQj/AACgkQWt0J3fd+7ZB31ACfUrGCslzmTzk6GQ1VsN96I0+d qgAAoIVGHYrkKLNu6/YvkvxLo45Up9CJ =2fYS -----END PGP SIGNATURE----- _______________________________________________ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list