re: Emulating "Private" Variables in JavaScript with Closures and Factory Functions VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Douglas Crockford truly is the legend of JavaScript. I totally agree with that quote. I bet I would go insane if I needed to write a class for eve...
 

That's actually similar to how options work in Rust.
You construct a struct.
If it's big, you often use a builder to not have to construct it all at once.
However, it all works out great in the end, and everyone is ecstatic :/

code of conduct - report abuse