Content deleted Content added
mNo edit summary |
Ada 95 Quality and Style recommendations |
||
Line 93:
::Sure, I'm happy with that. -- [[User:BenRG|BenRG]] 21:21, 18 Oct 2004 (UTC)
== Ada Capitalization ==
I propose to change the capitalization of the identifier 'Text_Io' in the Hello World! example. In my opinion the correct letter case is 'Text_IO' and not 'Text_Io', as it's found in the [http://www.adaic.org/standards/95aarm/html/AA-A-10-1.html Ada Reference Manual] and also in the [http://www.iuma.ulpgc.es/users/jmiranda/gnat-rts/rts/a-textio__ads.htm GNAT source code]. Although Ada is not case sensitive this doesn't mean that capitalization isn't important. The [http://www.adaic.com/docs/95style/html/cover.html Ada 95 Quality and Style Guide] recommends to '[http://www.adaic.com/docs/95style/html/sec_3/3-1-3.html Use uppercase for abbreviations and acronyms]', e.g. Text_IO (for Input/Output). Moreover, GNAT has an option to check attribute casing and reject any identifier that doesn't mach with its definition casing. Both forms are syntactically correct, but Text_IO is more correct and follows the language's guidelines of quality and style. Thanks -- [[User:Suruena|suruena]] 14:13, 2004 Nov 30 (UTC)
|