by pjc50 · 2y ago · 0 comments
For the first one, constructors should generally do required init, although there are circumstances where that's very hard. Hence the builder pattern.
Also, the type is different and ZLS will insert the hint if enabled.