Firth
Firth copied to clipboard
Comparison operators
gt
exists but that's it. The spec specifies a bunch of unimplemented stuff.
OK, we now have gteq
, lt
, lteq
: https://github.com/TazeTSchnitzel/Firth/commit/ca66c10cc1a6e315b355a9ed84739379605b93ba
However, eq
and neq
aren't yet implemented because they're more complicated. I thought I could just do (a === b || (a.type === b.type && a.value === b.value))
, but some values use different properties for the actual unencapsulated value itself, like .name
(symbols) or .body
(functions). So that'll need abstracting.