logoalt Hacker News

afdbcreid • yesterday at 9:10 PM • 1 reply • view on HN

That means those are probably builders and not setters. Do they change an existing object or a newly-constructed or to-be-constructed object?


Replies

incrediblers • yesterday at 9:19 PM

They are setters. They modify an element after instantiation. Mostly as part of the initial build, but then also in the event closure. Under the hood, a struct with interiorly mutable fields.

➕ show 1 reply