|
|
|
|
|
by such_a_casual
3240 days ago
|
|
Prefix notation is a problem because nothing beats the familiarity of: x = 10
But prefix notation is superior. You don't have to invent an order of operations out of thin air. All your functions take several arguments, not just 2. So + is now sum, - is difference, / quotient, > greater than order, etc. They aren't special. they're just like everything else.It'll never be as familiar, but it's smarter and makes writing code easier. For example "hello " + name + ", welcome to the " + place +"."
+ "hello " name ", welcome to the " place "."
The reality is you want functions that work on many things, not just 2, even when you're doing math. 1 + height + x + floor-height
+ 1 height x floor-height
infix notation does nothing to make code clearer |
|