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

You could... I guess language designers generally avoid those types of optimizations since it can bring about unexpected results. As in, if syntactically the code is using one order of operations and semantically the code is using another order of operations, even if it's documented, lots of programmers would stumble into difficult to find bugs and be surprised by this behavior. Or worse, just get wrong results and never even find out it's wrong.


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

Search: