Why would you ever use dot notation over bracket notation?

I hadn’t thought about code editors, but now that you mention it - in addition to giving you code completion, in a lot of IDEs you also get the ability to do things like jump to the declaration and get some warnings when you try to access it incorrectly. With bracket notation, editors just trust that you know what you’re doing.

@konstantin.krumin – you’ll always know whether dot notation will “work” when you’re writing the code.