kongware / scriptum

Functional Programming Unorthodoxly Adjusted to Client-/Server-side Javascript
MIT License
383 stars 21 forks source link

Treat `NaN`/`Infinity` differently #289

Closed ivenmarquardt closed 2 years ago

ivenmarquardt commented 3 years ago

Currently, both types are treated as undefined, i.e. they immediately terminate the runtime. Take a close look at how Rust and Haskell handle these types. NaN is particularly interesting regarding equality.