why ; ?

Janice Caron caron800 at googlemail.com
Wed May 7 21:23:31 PDT 2008


On 08/05/2008, Leandro Lucarella <llucax at gmail.com> wrote:
> No you don't, \n is your redundancy. So you still get meaningful messages.

That would be true IF AND ONLY IF we were forced to escape newlines
that didn't mean end-of-statement. e.g.

    auto a = b \
    (c)

I wasn't aware that requiring me to escaping newlines was part of the
suggestion. If it was, then I'm even more against it.

Besides which, how would that work with statements like

    if (a == b) { ++i; ++j } else { --i; --j }

If newlines were to take over the role of semicolons, then that would turn into

    if (a == b) { ++i
    ++j } else { --i
    --j }

Yuk.



More information about the Digitalmars-d mailing list