Firth icon indicating copy to clipboard operation
Firth copied to clipboard

Comparison operators

Open hikari-no-yume opened this issue 9 years ago • 1 comments

gt exists but that's it. The spec specifies a bunch of unimplemented stuff.

hikari-no-yume avatar Mar 24 '15 23:03 hikari-no-yume

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.

hikari-no-yume avatar Mar 26 '15 01:03 hikari-no-yume