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

Re: Substring indices everywhere? Eating a cake without destroying it

This page is part of the web mail archives of SRFI 13 from before July 7th, 2015. The new archives for SRFI 13 contain all messages, not just those from before July 7th, 2015.



> Why not just allow an implementation to "inline" substring?
> Instead of:
>         (string->number (XS>< "$12345.99" 1))
> the programmer would write:
>         (string->number (substring "$12345.99" 1))
> and the implementation can re-write this as:
>         (%%substring->number "$12345.99" 1)

I agree with Per.  It will be harder work for the compiler but the interface
is much cleaner.

Marc