News for hackers. Stuff that matters.
Re:Ask HN: Why use semicolons to terminate statements in mod... by axod on Monday November 24, 2008 @06:03AM (#374680)
ok here's a more usual situation in which the programmer is blindly using their favorite bracketing style, and come across the issue...

function getObject()

{

    return       // returns undefined, not the object.

    {

        age: 30,

        name: "axod"

    }
}

Personally I hate that style of bracketing, but some swear by it.

Re:Ask HN: Why use semicolons to terminate statements in mod... by timknauf on Monday November 24, 2008 @06:21AM (#374695)
Yeah, not really my favourite bracketing style either. Good example though - it is conceivable that this could happen.