[haXe] best strategy to port an existing js library
Franco Ponticelli
franco.ponticelli at gmail.com
Fri Dec 7 18:30:48 CET 2007
picnic <bitvolt at gmail.com> wrote:
> hi
> I'm trying to follow the discussion ...
> if I get you right is a bit a question of type safety vs. JS performance.
I think there are no problems in both areas:
About type safety, only the line of code that is creating the mapping is
unsafe (the one with the untyped keyword).
About performances if you do not wrap the function in another function but
instead use a static variable, the reference is created once at
initialization and then used directly. So the impact is almost zero.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20071207/8ad84271/attachment.htm
More information about the Haxe
mailing list