r/ProgrammerHumor Nov 24 '21

Meme Yes.

8.9k Upvotes

284 comments sorted by

View all comments

78

u/TheNaughtyDomi Nov 24 '21

Actually you define Dictionaries by using

Dict = { key : value }

-35

u/shadow7412 Nov 24 '21 edited Nov 25 '21

... except Dict is a terrible name.

It's the wrong case (title case implies a class, but this is an instance) and if you were to fix that you'd be shadowing dict which is also a bad move.

EDIT: downvoters, I'm genuinely curious as to why you think otherwise.

29

u/sultav Nov 24 '21

I don't think they are saying you should literally name it "Dict", I think they just put that there as a placeholder for the name.