Re: maximize null list => 0?

Stavros Macrakis <[email protected]> Sat, 8 Nov 2025 21:01:04 -0500
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CACLVabXSxsUSjX9X4dDRQLKVt89g6tcDHaDtQGG1TWdYveMGsA@mail.gmail.com>
The logical result would be the Bottom of the type (minus infinity or its
equivalent). But since no type is specified... and some types don't have
bottoms...

On Sat, Nov 8, 2025, 18:30 Jeff Cunningham <[email protected]> wrote:

> I just noticed that
>
>   (loop for i in '() maximize i) ; => 0
>
> Seems like this violate the Principal of Least Surprise. I thoutht it
> was going to return NIL. Given the maturity of Lisp, it must have been
> a design decision argued about in a committee. I'm curious if anyone
> knows what the rational was.
>
> -- Jeff
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Sbcl-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sbcl-help
>

_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help