Open Strilanc opened 5 years ago
Thanks. We'll look into this.
Thank you for your input! We are considering providing support for (de-facto) operator overloading in the future. Such a support could potentially be achieved via the infrastructure needed for other language features we are considering - e.g. type specializations. A patten matching mechanism is certainly interesting to look into as well. In any case, it will likely take some time before we can potentially support this, since we would rather address this in a uniform way as part of a larger extension to the Q# language.
Note that changes to the Q# language are subject to our language design process. At this point we are not ready for contributions implementing this feature yet. This issue will migrate to the appropriate repository in the near future and will be processed there.
I'm going to transfer this issue to the qsharp-language repo, since that's now the proper place for language suggestions.
A major source of boilerplate and typos and readability issues in my Q# programs is having to write things like this:
Instead of this:
Or this:
instead of this:
I would find it very useful if there were some mechanism to fix that. There are many possible ways to do so. For example, a pattern matching system: