|
|
|
|
|
by klibertp
975 days ago
|
|
You can't confuse keys in a hash table with properties of objects. It's not confusing, it's a useful distinction. Most languages that have both objects and associative arrays (so not Lua or JavaScript) make this distinction. It's not particularly error prone. You're simply refusing ("don't care why") to learn how to use the tool you're given. |
|
user instance from a django model => user.email
It is error prone. You're simply refusing to see an aberration.
That's how the language works, but it doesn't mean it's intuitive and easy to understand especially for a language known for being easy to use and understand.