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

Allow single quotes for strings since double quotes are hard to type on some keyboard layouts #891

Closed
ellogwen opened this Issue Aug 4, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@ellogwen

ellogwen commented Aug 4, 2017

I got used to writing single quotes for representing a string since double quotes are hard to type on my keyboard layout (at least for me and my body metrics). Now, while trying out elm, I noticed quickly that I am forced to use double quotes for strings instead of both (as in JavaScript). Now I am in constant "pain" bending my wrists and fingers for typing the double quote while trying out elm.

If I will stick with elm, I definitly will rebind my keys or something :)

@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Aug 4, 2017

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Aug 4, 2017

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Aug 4, 2017

Member

In Elm, the literal "hello" is a String and the literal 'c' is a Char. So we are actually distinguishing between different types of data.

If my memory is correct, this behavior is the same in C, C++, Java, C#, F#, OCaml, SML, Haskell, etc. So there is lots of precedent for this distinction in typed languages. I don't have any plans to change this behavior, so I don't think we should track it in a github issue.

Member

evancz commented Aug 4, 2017

In Elm, the literal "hello" is a String and the literal 'c' is a Char. So we are actually distinguishing between different types of data.

If my memory is correct, this behavior is the same in C, C++, Java, C#, F#, OCaml, SML, Haskell, etc. So there is lots of precedent for this distinction in typed languages. I don't have any plans to change this behavior, so I don't think we should track it in a github issue.

@evancz evancz closed this Aug 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment