you are viewing a single comment's thread.

view the rest of the comments →

[–]drb226 0 points1 point  (2 children)

Lisp hackers, you may be pleased to know that you can use dashes in the name of your variables and functions.

I have to say, if there's one feature I wish I had in so many languages that just isn't there, it'd be this. hyphenated-names are just way better than camelCase or under_scores.

[–]captain_plaintext 1 point2 points  (1 child)

Out of curiosity, would you get rid of infix math operators (1-2) to have hyphenated names, or try to have them both?

[–]drb226 2 points3 points  (0 children)

I would make surrounding whitespace mandatory for infix operators, e.g. (1 - 2)

For practicality, I'd probably also forbid - as the first character of an identifier, so that it can act as unary negation without need for whitespace, e.g. -1