September 17, 2016
On 09/17/2016 09:38 AM, eugene wrote:
> because a programmer will have a choice of writing or not semicolons, as
> one anyway presses "Enter" why not to use it as a line separator, and
> one who likes to type semicolons won't be confused if there is backward
> compatibility

Other people have already explained the reasons. It all just comes down to one thing: There's a class of programmers who will never stop griping about trivialities like "Oh my god, I have to type a semicolon?! How horrible!"

Can we drop the matter already and get back to something a little bit less worthless like tabs vs spaces. If semicolons are such a terrible drain, there's always JS and Python. Have fun.
September 17, 2016
On Saturday, 17 September 2016 at 11:59:53 UTC, cym13 wrote:
> Note how a leading dot means “global scope” but a dot after something means UFCS or method/attribute. What should this program do? If it is akin to “auto i = [1, 2, 3]; .filterEven();” then i is an int[] and the program prints “Nothing here”. But if it is understood as “auto i = [1, 2, 3].filterEven();” then i is whatever type filter returned and nothing is printed.

Entirely aside from removing semi-colons or not the global dot operator needs to be killed with fire and replaced with something more explicit. It's far too rarely used to justify such an easily confused and meaningless grammar.
September 19, 2016
On Saturday, 17 September 2016 at 14:47:38 UTC, eugene wrote:
> On Saturday, 17 September 2016 at 14:23:40 UTC, jmh530 wrote:
>> What if the OP wrote a compiler that turned his version of D sans semicolons into proper D code?
>
> i didn't try to implement it myself, but i will try

There's already a compiler: http://delight.sourceforge.net/
September 19, 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?

If you write JS in a professional environment, you will almost certainly be required to terminate every line with a semicolon because it's too easy to write code that behaves in unexpected ways otherwise. If you spend enough time writing Python, you will start to run into cases where meaningful whitespace makes it difficult to write readable, functional code.

Omitting semicolons satisfies a small handful of programmers who don't like having them all over the place, sure, but it alienates everyone who takes development seriously enough that the ambiguity becomes a hinderance.
September 19, 2016
On Mon, 19 Sep 2016 13:06:30 +0000, pineapple wrote:
> If you
> spend enough time writing Python, you will start to run into cases where
> meaningful whitespace makes it difficult to write readable, functional
> code.

For the most part, you can wrap a statement in parentheses in lieu of semicolons.
September 19, 2016
On Monday, 19 September 2016 at 15:13:10 UTC, Chris Wright wrote:
> On Mon, 19 Sep 2016 13:06:30 +0000, pineapple wrote:
>> If you
>> spend enough time writing Python, you will start to run into cases where
>> meaningful whitespace makes it difficult to write readable, functional
>> code.
>
> For the most part, you can wrap a statement in parentheses in lieu of semicolons.

That's called Lisp.
September 19, 2016
On Saturday, 17 September 2016 at 16:43:13 UTC, Nick Sabalausky wrote:
> If semicolons are such a terrible drain, there's always JS and Python.

For someone who likes D, Nim (http://www.nim-lang.org) would be better a choice for a language at the same level with Python like syntax. Changing D surface syntax is an obvious non-starter.

September 19, 2016
On Monday, 19 September 2016 at 16:52:10 UTC, bpr wrote:
> On Saturday, 17 September 2016 at 16:43:13 UTC, Nick Sabalausky wrote:
>> If semicolons are such a terrible drain, there's always JS and Python.
>
> For someone who likes D, Nim (http://www.nim-lang.org) would be better a choice for a language at the same level with Python like syntax. Changing D surface syntax is an obvious non-starter.

Or Crystal

https://crystal-lang.org/

It's Ruby syntax with some of the nice features you'd find in D. It's only alpha at the moment and doesn't work on Windows.

The thing is that there is no way of telling how much D code would break (including the compiler), if semicolons were removed or optional. That's too big of a gamble for a purely aesthetic change.
September 19, 2016
On Monday, 19 September 2016 at 20:22:00 UTC, Chris wrote:
>
> The thing is that there is no way of telling how much D code would break (including the compiler), if semicolons were removed or optional. That's too big of a gamble for a purely aesthetic change.

I don't see a reason to make that sort of change within the D language or DMD, especially when something like Delight exists and probably accomplishes exactly what the OP had wanted.

It looks like the last commit was last year to bring it in line with 2.067
https://github.com/pplantinga/delight
so if people are interested they could probably get in touch with the author of that and help get it updated.

September 19, 2016
On 09/17/2016 07:32 AM, Chris Wright wrote:

> python-style syntax a while back, in the D1 days,
> though I forget the name of it.

  http://delight.sourceforge.net/

Ali