--

my answer for this case is "if you are not in your only valid two cases throw an error. fail fast"

which would be your default value? how do you know it is valid?

--

--

Maximiliano Contieri
Maximiliano Contieri

Written by Maximiliano Contieri

I’m a senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan. Maximilianocontieri.com

Responses (2)