Hacker News new | past | comments | ask | show | jobs | submit login

> C has significant whitespace. Use spacing to specify the order of arithmetic operations.

and

    3 = 3.14! //true
... i think we got a systems language here. It really needs facilities for self modifying code and multiprocessing/ clustering, tho; to be considered a "modern" language. Perhaps make all heap allocations out of some DHT pool?



> Use spacing to specify the order of arithmetic operations

Reminds me of EWD1300:

> Surround the operators with the lower binding power with more space than those with a higher binding power.


The merd language http://merd.sourceforge.net/ from 2003 states:

> horizontal layout: 1+2 * 3 is (1+2) * 3 (merd innovation!)


Annoyingly, SmallTalk actually does this, so they got there first. The reason is that operators are just methods (and numbers are objects) and so arithmetic dispatches left to right unless parens are used, ala (1.+(2)).*(3)


I'm pretty sure APL (if not APL, definitely J) also does this too and APL was designed as a common "mathematical" language for expressing computation.


Outside of giving mathematicians a stroke, is that really unreasonable? I kind of like the idea of treating operations more regularly.



I'm really curious what that broken G+ link next to "batshit liberal" says.


Ha! I should fix that. It's Steve Yegge's post on software liberals vs conservatives, hold on let me find it.

Edit: Here's a bootleg: https://gist.github.com/mrnugget/49ad3ee4043c746e42187e2820d...




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

Search: