I’m sorry I worded that poorly. I haven’t noticed a hit yet either, but my code base is fairly small at the moment and I was just curious if you had any experience testing these with larger projects.
On my MacBook Pro (Mid 2015), 2,2 GHz Core i7:
Null safety check for Haxe compiler unit tests takes ~60ms.
Null safety for VSHaxe (Haxe plugin for Visual Studio Code) takes 4ms
You can run your compilation with --times argument. And if null safety takes longer than 1ms, you will see it in the report.
The feature works pretty neat for the most part, however I’ve noticed that it seems to have trouble with the string library. So for example if I compile with strict on my own modules and then call split or substr on a string in my strict module haxe will complain about assigning null values. If I go into the string library and remove the inline from substr and split the error goes away. As you would figure removing the inline causes the whole program to not work as expected…
Its good that its a known issue. The null feature can really reduce the amount of code you have to write, knowing that a variable actually has a value is great.