2 ms·
> echo("Hello world!") I'm struggling to think how different it could be. Remove the parens? print instead of echo? It's a fairly minor point. I'm fairly very
by andybak 12y ago
> echo("Hello world!")
I'm struggling to think how different it could be.
Remove the parens? print instead of echo? It's a fairly minor point. I'm fairly very sensitive on issues of visual clutter in syntax and this doesn't bother me in the slightest.
> I far prefer the set of cases to be indented from the case statement itself.
As mentioned elsewhere this is optional but I do agree
> And the "of" on each line is redundant cruft.
I suspect there might be a good reason for needing a keyword here. I would have to dig deeper to be sure though.
Anyway - I can tolerate both of those. Any language with significant white-space and no curly-brackets is off to a good start aesthetically in my books. Skimming through the tutorial shows remarkably few horrors even when doing some moderately advanced stuff e.g. http://nim-lang.org/tut2.html#generics http://nim-lang.org/tut2.html#generics
- bluecalm 12y agoThe case thing appeared in some coding guidelines for difference languages (ex: https://www.kernel.org/doc/Documentation/CodingStyle https://www.kernel.org/doc/Documentation/CodingStyle). I guess experienced people who wrote a lot of code didn't like to waste indentation level. I do indent case's myself but I think not indenting them is not something to easily dismiss.