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

One problem with C or C style code like JavaScript is that it often uses opaque special characters like various different brackets where the meaning isn't self-explanatory. E.g. "if (A) {B}". This can be expressed more naturally with "if A then B end if" in pseudocode. Or another C offender: "a = b". In pseudocode this would typically be "a ← b" or perhaps "a := b".


How is walrus any more intuitive?


:= is at least known from mathematics. It's also asymmetric, unlike =.




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

Search: