by lysecret · 4y ago · 0 comments
Also using ? For attributes that might be there and being able to chain that is sooo awesome.
These two things make for example working with nested Json in JS so much better than in Python.
We would need a ? to says "ignore AttributeError, IndexError and KeyError on that access".
However, the use of {} for set is not a problem.
First, remember than Python is much, much older than JS. Insight is 20/20. Second, you could always use a different syntax.