[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Out-of-range subsequences

    Message-Id: <8606181414.AA11649@gswd-vms.ARPA>
    Date: Wed, 18 Jun 86 09:14:35 cdt
    From: preece%ccvaxa@gswd-vms.ARPA (Scott E. Preece)
    To: COMMON-LISP@su-ai.arpa
    Subject: Re: Out-of-range subsequences

    >    From: Daniels.pa@Xerox.COM
    >    In particular, is (subseq #(1 2 3) 0 5) an error? 
    If you clarify it to require and in bounds endpoint, you need
    to do two operations.

So what, it's only (subseq a 0 (min 5 (length a))).

    No big deal, but I don't think many
    users would find it confusing that the operation stops at
    end of string if the endpoint is out of bounds.

I think they would.  (subseq a 0 5) should always return a string of
length 5.  Under your scheme, it might return a shorter string.

	-- Richard