https://pantsbuild.org/ logo
#general
Title
# general
a

aloof-angle-91616

10/26/2019, 8:29 PM
Elm uses capitalization to differentiate certain kinds of names. Module names start with an upper-case letter, like List and Http, whereas function and argument names start with a lower-case letter, like length and request. These rules make it easier to scan through new code, but they can be surprising in the learning phase, especially if you are used to JavaScript or English.
this is interesting and i actually like this idea in general, but i’ve had people go on about how using capitalization for specific identifiers is really confusing and a waste of a way for users to define their own meaning for caps
h

hundreds-breakfast-49010

10/28/2019, 4:52 PM
Haskell syntax enforces that type names begin with an uppercase letter and value names begin with a lowercase one
Elm uses basically the same conventions, although there might be some slightly different details
and rust has a similar broad convention, although it doesn't enforce it syntactically
3 Views