Add boolean support for datatype.boolean and helpers.maybe #1519
Labels
c: feature
Request for new feature
has workaround
Workaround provided or linked
m: datatype
Something is referring to the datatype module
m: helpers
Something is referring to the helpers module
p: 1-normal
Nothing urgent
s: waiting for user interest
Waiting for more users interested in this feature
Milestone
Clear and concise description of the problem
Currently there is no easy way to convert
boolean?
toboolean
. This feature is somewhat similar torangeToNumber
.I'm aware that there might be better ways to implement this.
Suggested solution
The same for
helpers.maybe
, then you can use it like this:Alternative
Doing nothing
Additional context
I considered this while writing the examples for #1508 (comment).
The text was updated successfully, but these errors were encountered: