Open utterances-bot opened 4 years ago
I found useful extra info on this old blog: http://haxedev.wikidot.com/article:operator-overloading
As programming languages like java do not support operator overloading, it is why I think that abstracts are a very important compiler feature.
A list of valid operators is needed, like in the old docs. As a new user I didn’t know the even existed
Is there a way to just "forward" operators when we abstract a primitive type like Int
?
@zabojad It's described in the last section.
Operator Overloading - Haxe - The Cross-platform Toolkit
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/types-abstract-operator-overloading.html