Safety library has similar feature: GitHub - RealyUniqueName/Safety: Null safety for Haxe.
For obj!.field
expression it returns obj.field
value or null
if obj
is null
.
Here is the code, which transforms obj!.field
: Safety/SafeAst.hx at master · RealyUniqueName/Safety · GitHub
Maybe that could give you a hint
1 Like