Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Yeah, not really my favourite bracketing style either. Good example though - it is conceivable that this could happen.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: