Add `Bool.Extra` functions
Is not Bool part of core? 🤔 https://package.elm-lang.org/packages/Chadtech/elm-bool-extra/latest/Bool-Extra
Those fall into a few categories:
- trivial:
List.all identityisn't really something you need a library to provide, no? - arbitrary:
toStringon a boolean is a bit funky, as each language/file format will need different names - out of scope: we don't deal with elm/json and don't want to depend on it.
In other words, I would like to see a more complete argument for including any of these functions other than "Is not Bool part of core?", before we consider this.
@gampleman your complaints are reasonable, I noticed in our codebase we are only using toMaybe which I guess might be useful for someone else? 🤔
I find that function fairly confusing. Compare:
if bool then
Just v
else
Nothing
vs
Bool.Extra.toMaybe bool v
One of those is obvious, the other you need to read a fair amount of documentation...
Anyway, I think my opinion is clear. I'll leave this open for now and if there is a lot more consensus that we should include it, then we can re-evaluate this.