fsharp / fslang-suggestions

The place to make suggestions, discuss and vote on F# language and core library features
346 stars 21 forks source link

Allow emoji without surrounding `` as variable names #1271

Open Xyncgas opened 1 year ago

Xyncgas commented 1 year ago

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:

Please tick all that apply:

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.

vzarytovskii commented 1 year ago

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

zanaptak commented 1 year ago

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.

RobTF commented 1 year ago

@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. ;)