|
|
|
|
|
by RobMurray
809 days ago
|
|
Wow what a lot of parentheses! To me the first example is perfectly clear because it follows the same precedence rules I learned for arithmetic at school, along with most programming languages. There's nothing special about Haskell here, in Python I would write: >>> math.sqrt(2) + 1 * 3 + 3 * 2 + 1 / 7
10.557070705230238
The only difference I see is the parentheses used for function application in python. |
|
Due to Haskell's rigor in regard negative numbers:
Let's see, Ahh, now that's better.