Email or username:

Password:

Forgot your password?
1 post total
Matthew Lyon

the downside to working in a lisp, even for a little bit, is that you are forever fucked when it comes to operator precedence. You’ve tasted something better and will forever rue the choices we as a culture have made which led to such a concpet as “spot the funny punctuation that’s more important than the other funny punctuation”

Show previous comments
Matthew Lyon

I mean the real kicker here is, if you want to make infix notation with order of operations _readable_, you either have to:
- break up operations into multiple statements with only equivalent operators
- use parenthesis to group operations whether you need them or not

I vaguley remember one C-like language which forced these rules on you, but most don’t

Josh Susser

@mattly I still like Smalltalk precedence. Every method is unary, binary, or keyword. Infix math operators are all binary and every one has the same precedence, so you use more parens but you're never confused.

Woke Leftist Trash

@mattly this is one thing I have rued as I descended into Haskell. They even make it easy for users to add more infix operators and define their precedence.

Go Up