This is an automated archive made by the Lemmit Bot.
The original was posted on /r/programminglanguages by /u/ThyringerBratwurst on 2024-03-22 03:58:37.
Actually, I planned custom operators like in Haskell, even pre- and postfix variants. But from a lexical point of view it is a horror to take all of this into account and then distinguish it from conventional punctuation. I also find the many bizarre operators of some libs in Haskell annoying and think that operators as special symbols are too syntactic and should be developed more carefully in the overall picture of the language design. That’s why I’m thinking about handling it like in Python, where you can’t define operators yourself, but you can reimplement the existing ones; or, as in Rust, easily overloadable by traits (corresponding to type classes in Haskell).
What do you think?