[haXe] Method checking

Michael Florentin mflorentin at laerdal.dk
Thu Apr 6 10:43:58 CEST 2006


Hi list...

I've recently discovered haXe and I must say, I like what I see.  I'm 
especially pleased with the strict type system - I've never understood, 
what is so cool about dynamic typed languages which seems to be 
prevalent paradigm among scripting languages.

By far, the most common programming errors I make are silly spelling 
mistakes or forgetting the exact type of the value I once put in a 
variable.  I like to be informed about those silly bugs while I'm coding 
my project instead of having the final product crash in weird ways. 
Having a background in languages like Haskell, I have a weakness for the 
"Once it types it works"-property in programming languages...

However, one point I've come across where I would like the haXe compiler 
  to help me more is in:
   var mc = flash.Lib.current.ICantSpellCreateEmptyMovieClip("test_mc", 
1000);
I would have thought that the compiler would fail and tell me that 
ICantSpellCreateEmptyMovieClip is not a member of MovieClip like in:
   var bar = ({ foo : 117 }).bar;
(BTW, why is { foo : 117}.foo illegal?)  Instead I get an undefined 
value in mc.  Am I missing something here?

Keep up the good work - I'm currently evaluating haXe as an alternative 
to NeoSwiff (http://www.globfx.com/products/neoswiff/) which is also 
quite an impressive product but in our experience suffers a bit of being 
less than a good team player when working with other SWF-movies.  So far 
haXe seems to hold the most promise - and then it is open source!


Michael Florentin



More information about the Haxe mailing list