[M3devel] whitespace rationale?

Jay jayk123 at hotmail.com
Fri Apr 18 17:01:32 CEST 2008


Does anyone know of a reason to put a space between a function and the paren to start its call?
Other than "When in Rome"?

I've long not put that in, but I see a fair amount of code that does, and a fair amount of code that I didn't write that doesn't (e.g. sysutils).
Seems to be all over the place, but a lot of Modula-3 code puts it in (not that I have seen much Modula-3 code in the world...but...)

Similarly for array indexing array [index] vs. array[index].

(Not to mention if (expr) and not if ( expr ). Modula-3 (and Python!) doesn't require the parens so it comes up less often.)

I always like to know why..

 - Jay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080418/c8a511e7/attachment-0001.html>


More information about the M3devel mailing list