logoalt Hacker News

setr • today at 3:52 PM • 0 replies • view on HN

The difference isn’t between JS/Python; objects exist in many languages with various representations, JS happens to model objects using dictionaries.

So it’s really the case that JS conflates objects/dictionaries, so only people familiar with only JS would know what you mean

Edit: actually thinking about it, I’m fairly positive python also models objects as dictionaries; it just puts more effort into hiding it