Hi,

Marc Weber <[EMAIL PROTECTED]> writes:

> What do you think about introducing a 
>
> lib.toBool = value : ! (value == false  || value == null || value == "")
>
> function?

Why not `(value == 0 || value == {} || value == [])' as well?

Overall, I find it clearer to not use this kind of thing as the
semantics may not be all that clear.

Thanks,
Ludo'.

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to