Allow emoji without surrounding `` as variable names
I propose we support directly using emoji in variable names
The existing way of approaching this problem in F# is same as having space in variable names
There's no down side to this, nothing is going to break
The advantage of making this adjustment is ease of use
The disadvantages of making this adjustment is nothing
Please tick this by placing a cross in the box:
- [x] This is not a question (e.g. like one you might ask on stackoverflow) and I have searched stackoverflow for discussions of this issue
- [x] I have searched both open and closed suggestions on this site and believe this is not a duplicate
- [x] This is not something which has obviously "already been decided" in previous versions of F#. If you're questioning a fundamental design decision that has obviously already been taken (e.g. "Make F# untyped") then please don't submit it.
Please tick all that apply:
- [x] This is not a breaking change to the F# language design
- [ ] I or my company would be willing to help implement and/or test this
For Readers
If you would like to see this issue implemented, please click the :+1: emoji on this issue. These counts are used to generally order the suggestions by engagement.
I guess it's a similar area as https://github.com/fsharp/fslang-suggestions/issues/1104 and (probably) https://github.com/fsharp/fslang-suggestions/issues/1079. Former was rejected, latter is still open.
cc @dsyme
Possible duplicate of #1026 and my comment there was:
contrary to Unicode identifier recommendations per Annex #31 and wouldn't add much value given the option to use backticks still exists
Edit: The new proposed update to Annex 31 may be adding an emoji identifier profile, which would remove the argument that it is against Unicode recommendations. However, I think compelling examples of computing tasks or domains that benefit from emoji identifiers would still be needed before considering whether adopting such a profile would provide enough value.
@Xyncgas isn't it better to build your own bridge? Why not make your own F# compiler with the changes you want? It's probably only 200 lines of code or so. ;)