Hacker News new | ask | show | jobs
by zilti 785 days ago
Having a full numeric tower and stuff like having 1/2 evaluate to 1/2 (like in Scheme) definitely is the language designer's responsibility.
1 comments

"1/2" - are these integers or reals?

Shouldn't the correct results be expected for the correct statement "1.0 / 2.0" instead?

This is a user flaw, not a language flaw. Nothing in the "1/2" statement implies real numbers .. ?