Re:TypeScript: a language for application-scale JavaScript d...
by wingspan on Monday October 01, 2012 @01:43PM
(#4598328)
A team member could comment better than I, but unless TypeScript adds some kind of operator overloading, supporting a new type would be difficult since it compiles to normal JavaScript. Even then, creating a performance decimal type without native code support might be difficult.
[ Parent
| on HN ]
Re:TypeScript: a language for application-scale JavaScript d...
by platonichvn on Monday October 01, 2012 @03:24PM
(#4598877)
Yeah performance is another issue. But providing a type that compiles to a defined type that implements decimal representation would be very useful. GWT pulls off something similar by compiling the Java BigDecimal to a JavaScript equivalent.