consequences of removing semicolons in D like in Python
Lodovico Giaretta via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 17 07:32:49 PDT 2016
On Friday, 16 September 2016 at 23:00:08 UTC, eugene wrote:
> Hello everyone,
> what if to remove semicolons at the end of each line of code in
> D like in Python?
> Is it worth it?
Another reason not listed in previous answers (or I didn't see
it) is that D as a unique (AFAIK) capability: string mixins. If
the language were whitespace-sensitive (as Python is), writing
string mixins would be a lot more painful, as it is very
difficult and unconvenient to write the mixed-in strings with
correct indentation and line breaks. Having explicit delimiters
(both semicolons and curly braces) is very important for the
usability of this feature.
More information about the Digitalmars-d
mailing list