Hacker News new | ask | show | jobs
by chrisan 3256 days ago
> the static typing was extremely limited: you could only type "Function", not the actual arg and return value types

You can type args and returns. One of the biggest things I relied on when I coded AS3

1 comments

I meant for higher order functions, callbacks, etc.

e.g, see the signature of Array.map:

map(callback:Function, thisObject:* = null):Array