Is there a way to customize operators and symbols?

Out of curiosity, what type of code are you writing and why does it force you to use so many match statements?

I feel like instead of making match require less key strokes, it may be better to X-Y the problem and just reduce the need to write them so much.

If this is just about replacing => with then, you may want to check out the thread on using ~ instead of mut.

Overall, the consensus was that changing a language's syntax for cosmetic reasons isn't worth it due to implementation costs, duplicate syntax, having to rewrite all your training material, confusion over how to use match, people seeing it as a Python 2 vs Python 3 breakage and all the negative PR that entails, etc.

It'd also be like going to the implementors of Python and saying "I love Python, but can we use curly braces instead of indentation?" Which is a hard sell.

2 Likes