cruxlang / crux

Crux Programming Language
http://cruxlang.org
Other
51 stars 2 forks source link

Negative numeric literals #43

Open andyfriesen opened 8 years ago

andyfriesen commented 8 years ago

oops!

chadaustin commented 8 years ago

Unary ops in general. I think we want - and ~ (complement) in the least.

chadaustin commented 8 years ago

Though I could be convinced we should just use functions for this. not, complement, and negate. Thoughts?

andyfriesen commented 8 years ago

Did you mean to comment on https://github.com/andyfriesen/crux/issues/44 instead? This issue is about numeric literals.

chadaustin commented 8 years ago

I guess they're related. For example, iirc, C doesn't have negative numeric literals. It only has an unary negation operator that can be applied to positive numeric literals.

andyfriesen commented 8 years ago

ah. I understand now. I don't have a stance one way or another.