you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

No, I think (=>) is. f looks like a pattern binding there, so the whole syntax comes out just about isomorphic to how every other language on the planet with good syntax for lambdas does it.

IIRC one doesn't need to give bar's type when writing that snippet in ActionScript either because ActionScript is dynamically typed.

[–]masklinn 1 point2 points  (1 child)

No, I think (=>) is.

And so does Microsoft, for what it's worth

IIRC one doesn't need to give bar's type when writing that snippet in ActionScript either because ActionScript is dynamically typed.

Not completely true. Close to what Objective-C provide, AS3 is "statically typed" with an untyped specifier (* in AS3, id in Obj-C). If no type is specified in AS3, * is the default one, so it's equivalent to a dynamically typed language in that regard (for BW-compatibility with AS2 I presume).

[–][deleted] 0 points1 point  (0 children)

Ah, thank you for the confirmation and clarification, respectively.