user
05/15/2017, 3:24 PMEither
type as @groostav mentioned and using the strategy outlined in the talk he linked to. I’ve been using it and it has been very helpful. It prefer it over exceptions because it also reads clearly and you also get compiler assistance.