Remix.run Logo
orphea 5 hours ago

Many tools can be misused. Object.Member can throw a NRE, is it a big mistake to have the dot operator?

raincole 5 hours ago | parent [-]

It's such a weird question.

Yes, "dot operator can throw a NRE" is of course a big mistake. A billion-dollar mistake, you can even say.

orphea an hour ago | parent [-]

No, I'm not asking if "dot operator can throw a NRE" is a mistake; I'm asking if the dot operator, the ability to access members at all, is a mistake.