Skip to content

Add support for hyphens in identifiers #4304

Closed
@paulmillr

Description

@paulmillr
let (from_child, to_child) = DuplexStream();
let some_long_quite_sort_of_stuff = "stuff";
let (from-child, to-child) = DuplexStream();
let some-long-quite-sort-of-stuff = "stuff";

Hyphens are more readable than underscores and do not require pressing shift every time. Which will be annoying if you use an underscore_case language. Try writing long word from first example and from the second.

Underscores have been around since forever, but ask yourself: are modern non-engineers aware about the character? The answer is: nope. No one gives a shit about underscores except of IT guys.

Languages that use hyphens successfully: Clojure (& lisps), LiveScript (take a look at examples) etc.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions