elm-hub / elm-wishlist

An Elm ecosystem wishlist
8 stars 0 forks source link

Allow dash case names #3

Open popara opened 8 years ago

popara commented 8 years ago

Hi,

I am writing heavily Livescript, and Elm these days, and for some reason I find dash-case to be much more readable in comparison to the Elm's enforced camelCase.

I would be so happy if someone could write up some support for dash-case syntax for Elm.

Livescript transpiles dash-case to Javascript's camelCase pretty neatly. I recon it shouldn't be a problem for those with the Force of Modifying Elm :)

sporto commented 8 years ago

@popara this seems like an issue for elm-compiler, maybe post there for https://github.com/elm-lang/elm-compiler/issues

mbylstra commented 8 years ago

I would absolutely love this! This is one of the biggest selling points of Lisp for me. The only limitation of having dash-case (I believe) is that you wouldn't be able to use the minus operator without having spaces between the arguments. I think lack of whitespace in arithmetic expressions is bad anyway.

popara commented 8 years ago

I feel you bro! :)

I will writeup sensible proposal to elm compiler team on Monday.

On Sat, Jan 23, 2016 at 10:44 AM Michael Bylstra notifications@github.com wrote:

I would absolutely love this! This is one of the biggest selling points of Lisp for me. The only limitation of having dash-case (I believe) is that you wouldn't be able to use the minus operator without having spaces between the arguments. I think lack of whitespace in arithmetic expressions is bad anyway.

— Reply to this email directly or view it on GitHub https://github.com/elm-hub/elm-wishlist/issues/3#issuecomment-174166149.