jamiebuilds / ghost-lang

:ghost: A friendly little language for you and me.
302 stars 10 forks source link

Add less-than and greater-than operators #32

Closed j-f1 closed 5 years ago

j-f1 commented 5 years ago

The operators can be chained like in Python, which is more intuitive than JS’s comparison of the truth value of one comparison to the other operand of the other comparison. I’m not entirely sure if a < b > c should be allowed, so I didn’t mention it.

jamiebuilds commented 5 years ago

I went back and forth on this, but I like it