Hacker News new | ask | show | jobs
by dgesang 4703 days ago
Also AS3 has strong static typing, a huge advantage, as we've just heard once again yesterday:

[...] the value of types is super super important. [...] Everything that is syntacticly legal, that the compiler will accept, will eventually wind up in your code base and that's why I think that static typing is so valuable because it cuts down on what can kinda make it pass down there. I'm only getting stronger in my stands on static typing, static analysis.[...] - John Carmack, qcon keynote 2013

1 comments

I actually feel like AS3 could go further with static typing. Due to things like promotions with arithmetic operators, you lose some performance. I always felt it would be better to either force the user to explicitly cast between floating point operators and ints, and crash if they tried to do something with an int that would lead to a float.