[Nix-dev] Re: Would having a toBool function be nice or insane ?
Ludovic Courtès
ludo at gnu.org
Mon Aug 18 14:05:21 CEST 2008
Hi,
Marc Weber <marco-oweber at gmx.de> 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'.
More information about the nix-dev
mailing list