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

If you have the same expression twice as part of a compound assignment, there's nothing stopping you from assigning the variable instead of repeating the expression:

    a = b = f();
vs.

    a = f();
    b = a;
And tangential, but editors really shouldn't be mangling text as you type. Whenever I install Visual Studio anywhere, it's the first thing I turn off...


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

Search: