Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mainly:

* Integer types of various sizes (for efficiency) and so you don't have to constantly do floating point comparisons (i.e. equal within a small delta) and generally have better compatibility with other languages. * Decimal floating point type so you can work in base-10 and don't have rounding issues.

Plus all of the error checking you get for free if you're using typescript instead of raw-dogging it with plain javascript or coffee-script :-)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: