Remix.run Logo
raincole 5 hours ago

Unity's C# has always felt like C#'s mentally challenged cousin. C-not-so-sharp. The custom == convinced me that allowing operator overloading on built-in operators is one big mistake.

orphea 5 hours ago | parent [-]

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.