DEV Community

Discussion on: Dot notation vs BracketĀ notation

Collapse
 
sameerchandra profile image
Sameer Chandra Nimushakavi •

So, dot is preferred just for ease of use and nothing else?

Collapse
 
samanthaming profile image
Samantha Ming •

Yup! But isn’t that enough of a selling point šŸ˜

Collapse
 
marcellonicoletti profile image
Marcello Nicoletti • • Edited

It also looks like object usage in other C-like languages. It will be easier to read and write for people coming from C, C#, and Java.

EDIT: I guess that's still ease of use, but in a different way than mentioned in the post. As far as I know there is no time difference when the code is actually running so there is only really differences in ease.

Collapse
 
samanthaming profile image
Samantha Ming •

Woo! Definitely an advantage šŸ‘ will add that to my notes 😊