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

Writing code that way I can understand. But it's kind of useful to be able to read other peoples code and know what it does.

Also, "1 + 2 * 3" is quite obviously 6 and not 9 in languages with operator precedence, I really don't think you need to write "1 + (2 * 3)".

Everything in moderation.

EDIT: hahaha, well I feel stupid. I'm leaving the incorrect answer there because it's too funny not to :)



it's neither 6 nor 9 there, actually :) it's 7.


You clearly don't understand the advanced kind of maths I'm doing there ;)


Haskell to the rescue!

    ghci> let f = let 2*3=5 in 1+2*3
    ghci> f
    6


brilliant!


"1 + 2 * 3" is quite obviously 6

Obviously ;)


Agree. This is provably true for large values of 6.


You mean 7, right?




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: