Something as described here would be easy to support: https://github.com/HaxeFoundation/haxe/pull/9476#issuecomment-633234380