Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lorentz15268206d1. why would you do this
2. why not take 5 steps back and do something that doesn't need reflection when you're about to write this
3. why not NAME THE FUCKING TYPE IN THE MESSAGE -
lorentz15268206d- parent class has no parameterless ctor
- descendants must have parameterless ctor
I am forced to pass null to a parameter that is not explicitly documented as nullable. I'm gonna set something on fire and you best hope it's a cigarette. -
donkulator2905206dNot naming things in error messages seems to be some kind of principled stance for some people.
Non-nullable reference types in C# are an abomination and should have been strangled at birth. -
donkulator2905206d@lorentz Why stop at nulls? Should Math.Sqrt(x) require a non-negative double instead of just a double?
Maybe if the language was designed from the ground up to support constraints like that, it wouldn't be too bad. But non-nullable reference types in C# have been bodged on over the top and are just confusing. -
lorentz15268206d@donkulator Arguably container-style Option would've been a better choice because it works better with generics, but I think null is a big enough problem that a solution that works most of the time is still desirable.
Related Rants
-
frozenjalepeno14Okay, just because I'm the only one under 35, single, and only white/hispanic guy on this team doesn't give yo...
-
DBX125Developers created IDEs with intelligent code completion and languages provide users with an annotation syntax...
-
myss13This is response I got from my ex tech lead in a company that I left six months ago.. Btw account is register...
My new favourite RUNTIME c# error, evidently thrown by the standard library because the string is not present in the project:
"no parameterless constructor defined for this object"
rant
amateurs
duck typing