Carl Hickman
01/17/2018, 7:59 PMStavFX
01/17/2018, 8:01 PMthrow
?Carl Hickman
01/17/2018, 8:03 PMlouiscad
01/17/2018, 8:04 PMrequire(…)
methods from the stdlib are for you!Carl Hickman
01/17/2018, 8:05 PMJonathan Ghazarian
01/17/2018, 8:08 PMRuckus
01/17/2018, 8:26 PMrequire
is the way to go. If you expect it to be null regularly, I'd recommend helper functions on the companion object. Generally you don't expect constructors to fail.cedric
01/17/2018, 8:39 PM