Nim programming language finally hit 1.0
JN
666total at wp.pl
Wed Sep 25 20:56:49 UTC 2019
On Wednesday, 25 September 2019 at 15:11:57 UTC, Chris wrote:
> Thanks. Yeah, I guessed its goal was to get a more readable
> notation, but you can get that with any language that doesn't
> force you to indent. It's common sense that you structure your
> code visually, but I call it patronizing or nanny syntax, if
> you are forced to use whitespace, there are many ways to
> visually structure your code but this should be up to the
> programmer / team / company.
I guess it's just a matter of preference. Personally, "forced
indentation" is one of my favourite features of Python. I indent
all my code blocks in C/C++/D/Java/C# anyway, so braces are
mostly unnecessary noise to me. Also, I think you underestimate
how hard it is to find a missing brace in code sometimes. For
example if you forget a closing brace on a method, and then the
compiler thinks next methods are inner methods and it breaks on a
"class Foo" declaration 200 lines of code later.
More information about the Digitalmars-d
mailing list