Functions/constructors/whatever which take a number of booleans greater than one upset me. Does this record make sense if something is false, X, true, X ? If not, then perhaps a enumeration of not/can/is generating would be better?
1
yes in this case it does. It's used as a key for my baked model which has a few booleans that determine it's shape. So this is the best solution here IMHO. Otherwise you just get an explosion of binary combinations and that's ugly
1
oh well. That is painful for you, but I guess if the scope is limited then you've got the best you can have.
1
Why is it painful? I don't really see a problem with that to be honest. Class/records with several booleans in it are VERY common
1
I suppose that if your ide labels the arguments it might be less bad
Dec 29, 2021 ยท 10:26 AM UTC



