2 ms·
One major difference though, objects with multiple fields will require some sophisticated logic to ensure correct order of initialization (depending on the way
by agumonkey 9y ago
One major difference though, objects with multiple fields will require some sophisticated logic to ensure correct order of initialization (depending on the way constructors and setters are done). A partial function enforces some order. You can accumulate safely information and get closer to a usable and valid final piece of logic.
It's less easy when you need choice although one can use subfunctions .
In OOP you may have fluent interfaces, builder things but it's.. once again a lot for not much more.