Join Slack
Powered by
there are cases where i want a default behaviour o...
# getting-started
j
jan.rabe
03/02/2017, 3:59 PM
there are cases where i want a default behaviour on instantiation if the parameters are not valid
a
Andreas Sinz
03/03/2017, 7:50 AM
jan.rabe: This sounds like a job for a factory 😄
j
jan.rabe
03/03/2017, 11:12 AM
well i tried to come up with a use case, thing is i don't see a reason why it was not allowed
jan.rabe
03/03/2017, 11:12 AM
just because there are other ways, doesn't mean it should be forbidden
a
adamd
03/03/2017, 4:02 PM
or validate them before instantiate 🙂
2
Views
Open in Slack
Previous
Next