MVCoconut / coconut.ui

Wow, such reactive view! Much awesome!
The Unlicense
89 stars 9 forks source link

Safe navigation operator not supported #96

Open cedx opened 1 year ago

cedx commented 1 year ago

In Views, I can't use the safe navigation operator introduced in Haxe 4.3.

Basically, it's the same issue as AlexHaxe/haxe-instrument#17: the generated code does not check for null values.

For example:

Tooltip.getInstance(event.target)?.dispose();

Becomes:

Tooltip.getInstance(event.target).dispose();

Instead of something like:

let tmp = Tooltip.getInstance(event.target);
if (tmp != null) tmp.dispose();