Re: GD/OD incompatibility of copy-sequence for the value #f
by "tc" <matthias.hoelzl@[EMAIL PROTECTED]
>
Dec 13, 2006 at 06:43 AM
cgay wrote:
> [...] As we talked about in IRC, you can always use
>
> copy-sequence(myseq, end: foo | myseq.size)
>
> to avoid the need to pass #f, so I don't think there's a strong
> argument to be made for treating #f specially on the basis of
> convenience.
You'll get worse performance with this solution than with the "end:
foo" one if you are dealing with a collection type in which size() is
not O(1) (and the implementation of copy-sequence for that type does
not use size() internally). There are easy workarounds but the short
ones, like
copy-sequence(myseq, end: foo | $unsupplied)
are not ****table.
Matthias