Comment

Comment by eterevsky

> # this is true > ((1 / 3) * 3) == 1

This is a slippery slope. Early versions of Dart tried to use rational numbers by default, but then it was cancelled because denominator size can grow exponentially.

Also, I seriously doubt you can make a language that will correctly resolve checks like this one:

sin(pi / 6) == 1 / 2

parent eterevsky 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton