Rather than using Std.isOfType(), it's cleaner to use the is syntax with mandatory parens if possible - it's already available since Haxe 3.4, so it doesn't require conditional compilation (I doubt anybody is still using Haxe versions older than that).
Std.is()
has been deprecated in Haxe 4.2: https://github.com/HaxeFoundation/haxe/commit/8ef3be1ae80fe4361572100fe7988518bc59c9edRather than using
Std.isOfType()
, it's cleaner to use theis
syntax with mandatory parens if possible - it's already available since Haxe 3.4, so it doesn't require conditional compilation (I doubt anybody is still using Haxe versions older than that).