5 ms·
Brief is not the same as lazy. I personally find comments that say what they mean to say in a short amount of text much more useful than ones that go on for par
by ebbv 12y ago
Brief is not the same as lazy. I personally find comments that say what they mean to say in a short amount of text much more useful than ones that go on for paragraphs without saying anything new. I strive for brevity.
I revised the one you responded to so you may want to check that now.
As far as more details of what I don't like about Nim, that would have been easy to ask directly; I find the syntax of:
echo("Hello world!")
To be outdated and ugly. I also find the case statement to be awful to read the way they've done it, I far prefer the set of cases to be indented from the case statement itself. And the "of" on each line is redundant cruft.
This is a brand new language and it holds on to what to my eyes is the worst cruft of old languages.
- dom96 12y ago> As far as more details of what I don't like about Nim, that would have been easy to ask directly; I find the syntax of: > echo("Hello world!") Would you prefer System.out.println("Hello world!"); instead? > I far prefer the set of cases to be indented from the case statement itself. You can in fact do that, it is however optional. > And the "in" on each line is redundant cruft. Not sure what you mean here. "in" is only used in for loops.
- ebbv 12y ago> Would you prefer System.out.println("Hello world!"); instead? This is why I didn't get into details originally because I knew I would get this kind of response. You know full well that's exactly the opposite of what I mean. You're being an asshole for no reason. > Not sure what you mean here. "in" is only used in for loops. I meant the "of"s, of course.
- dom96 12y ago> You know full well that's exactly the opposite of what I mean. You're being an asshole for no reason. I apologise if I came out sounding like an asshole, but I honestly am not sure what syntax you would prefer. Any chance you could show me?
- bluecalm 12y agoIt's really not easy to guess what you meant as you can see from number of people who responded to your comment with their guesses. Maybe you don't a function call or maybe like semi-colons or you don't like double quotes for a string...
- bronson 12y agoDownvoted because you've been asked for examples 3 times now and you only rant further in response. How is anybody else supposed to know what you mean? Guess correctly? Would you rather puts instead of echo?
- 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.
- gokr 12y agoWow, I just have to reply! Which one of these do you prefer: echo("Hello") echo "Hello" "Hello".echo "Hello".echo() Or something different?
- avz 12y agoThis: cout << "Hello"; beats all of the above by a wide margin. It's essentially an ASCII-art ideographic representation of what the computer is supposed to do.
- dom96 12y agoproc `<<`(f: File, s: string) = f.write(s) stdout << "Hello World" There you go :)
- bluecalm 12y agoYeah, it's truly is fascinating. Maybe echo "Hello" Is the way ? :)
- EXetoC 12y agoI'd say so. Maybe even echo"Hello" if you're in a hurry; it's just that it's then treated a raw string :p
- def- 12y agoThe nice thing is that all 4 are valid Nim.