News for hackers. Stuff that matters.
Re:Making Coffeescript’s Whitespace More Significant by artsrc on Thursday December 01, 2011 @01:01AM (#3298583)
These should all be compiler errors because the indentation and the delimiters don't match.

    if (expression)
        statement;
        statement;
    statement;
or:

    if (expression)
        statement;
        if (expression)
            statement;
    else
        statement;
or

    if (expression); {
        statement;
        statement;
    }
So curly brace languages should have a defined formatting standard and anything else should be a syntax error.

There are no comments on this comment yet.