logoalt Hacker News

jphoward • today at 10:03 AM • 1 reply • view on HN

I'm 'conflating' them because they're called objects in javascript, so people unfamiliar with Python know what I mean. Ok thanks.


Replies

setr • today at 3:52 PM

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