Re:TypeScript: a language for application-scale JavaScript d...
by platonichvn on Monday October 01, 2012 @01:16PM
(#4598165)
This is great to hear. I have only just started reading up on TypeScript. But I would love to know if there will be support for a decimal type. I have been following Google's work on Dart and it doesn't look like they will be implementing it last I checked. Such a feature would be a great differentiator.
[ Parent
| on HN ]
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.
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.