plus–minus ± scala.compiletime.ops? #17491
3xau1o
started this conversation in
General Discussion
Replies: 1 comment
-
It may be a better idea to introduce a type like this in your codebase: type +-[A <: Int, B <: Int] = A + B | A - B The cost of introducing new types like this in stdlib is possible confusion and growing complexity. Other types in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following type operation is valid
Is also valid to have union type operations
Can it be less verbose with a
±
math operator?Beta Was this translation helpful? Give feedback.
All reactions