HaxeFoundation / haxe-evolution

Repository for maintaining proposal for changes to the Haxe programming language
111 stars 58 forks source link

Static Extension Meta Functions #91

Open lublak opened 2 years ago

lublak commented 2 years ago

Rendered version

lublak commented 2 years ago

@:from and @:to actually have the same functionalities. Whether you want to implement both as alias is open here.

EliteMasterEric commented 9 months ago

I think this proposal is clean and makes a lot of sense. I see a lot of potential for making syntax very convenient with this, I like @:arrayAccess on strings in particular and think it should be added to StringTools. :+1: from me.

Simn commented 9 months ago

I can't see myself accepting any more implicit casts in the Haxe language, but I'm very much in favor of operator overloading via static extensions. This is a poorly written proposal though...