Hacker News new | ask | show | jobs
by languageserver 1400 days ago
> We used init functions at my last job

has the factory pattern somehow managed to crawl into a hole?

1 comments

init functions and factory pattern are not orthogonal.
that is not the statement. they say C++ sucks because init pattern means an unititialized object might be used. the factory pattern solves that