Hacker News new | ask | show | jobs
by DangitBobby 1648 days ago
player = Player()

all the time in Python.

date = new Date()

all the time in JS.

Those are just the two languages I spend the most time in, but, but I'm sure it's trivial to find numerous examples of cases carying meaning in case-sensitive languages. Especially ones which encourage camel casing.

2 comments

`player` and `Player` are different in Nim. Ditto for `date` and `Date`.
There is a difference between variables and types.

For instance, in C#, with capital-case convention for variables, it is common to give a variable the same name as the type.

eg `public Player Player;`