-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtraction of two chars #1030
Comments
Hmmmm.... This isn't approved yet - and does come under the "already decided in F# 1.0" category. This was rejected in F# 1.0 because, well, subtracting arbitrary unicode characters does seem wrong, pointless, even if there are some use-cases in the ASCII range. That said, I'd like other opinions on this. The 5 thumbs-up seem to indicate that people have no significant concerns. |
It's not only for the ASCII range, but also for conversion between half-width and full-width forms, conversions to enclosed alphanumerics, etc. |
I see. OK, then yes, we can do this |
This can be closed as it has been completed here dotnet/fsharp#11681 by @Happypig375 |
Subtraction of two chars
F# has addition of two chars.
I propose we also add subtraction of two chars.
The existing way of approaching this problem in F# is
Pros and Cons
The advantages of making this adjustment to F# are
The disadvantage of making this adjustment to F# is that this treats
char
s more likeint
s which may confuse beginners. However, addition is already present. It's inconsistent to not have subtraction.Extra information
Estimated cost (XS, S, M, L, XL, XXL): XS - Just add the overload
Related suggestions: None
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
For Readers
If you would like to see this issue implemented, please click the 👍 emoji on this issue. These counts are used to generally order the suggestions by engagement.
The text was updated successfully, but these errors were encountered: