Discussion

Why do programming languages suck at math?

What's the whole reason behind distinguishing between integers and float/doubles?

units = 2

price = 3.17

2 * 3.17 = ERROR

It blows my mind that so much effort has put into things like functions taking functions as arguments, and the characteristics of classes - yet a computer can't handle basic calculator math out of the box. PHP, Ruby, Swift, OCaml.. what gives?

What is the complexity behind this?

1 points laynetrain 9 years ago 13 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton