Strict nullability on dynamic targets

Hi all! This was probably discussed before, but I want to raise this question anyway.

I think it would be beneficial to allow optional enforcement of “strict nullability” check for dynamic targets. I mean that for my application it would be good if var i:Int = null; won’t work even on dynamic targets (like Javascript and Python).

Is this somehow hard to achieve in the current implementation? Or there is another reason? Because for me it seems quite natural that type system should not be dependent on the target (and I think nullability is in the basics of any language type system).

1 Like

Some tools have been added to haxe 4 to deal with null safety: Null Safety - Haxe - The Cross-platform Toolkit

1 Like

That’s great!