Hacker News new | ask | show | jobs
by dragonwriter 3876 days ago
> I would like to see a language use decimal by default.

So, Scheme?

1 comments

Scheme has rationals, but decimal literals aren't rational by default. You have to type #e in front of it, or express it as a fraction.

It really ought to be fixed at the implementation level (how much stuff would it really break if floatin point errors went away?), but failing that I'd love a macro that did it for me. I can't figure out how to write one robustly.