Why “constructors” is being discussed
The most recent Hacker News stories and comments contributing to this topic's mentions.
Ah, you're right, that's a bad example. I had assumed that that kind of precondition would be explicitly mentioned so I didn't read the rest of the text as closely as I should h…
by aw1621107 · Oct 21, 2026
In my earlier message [1] I described the evolution of the PEM Encodings API in a way that prevents applications from being exposed to the risk of runtime exceptions arising fro…
by smarks · Oct 19, 2026
What if the object can be invalidated asynchronously after the constructor has completed and before you get to use the object? For example by a remote connection dropping? You h…
by robotresearcher · Oct 19, 2026
> The C++ container classes assume noexcept constructors for this reason, because creating a list of size 20 calls your constructor 20 times, and the cleanup gets so much messie…
by xg15 · Oct 19, 2026
Exactly my thoughts. The problem that Lombok tries to solve in obscure ways, can be solved much simpler: with a code generator program. We wrote our own before Lombok was a thin…
by braggerxyz · Oct 19, 2026
Can you elaborate? To be clear, I know how to look up where the class is used, and i know how to look up where constructors (note, plural) for the class is being used, but I hav…
by Lewton · Oct 19, 2026
Interest
Proportion of Hacker News items mentioning "constructors" over time.
Mentions
Total number of Hacker News items mentioning "constructors" over time.
Constructor may refer to: Read more on Wikipedia