Re: Growing a data type?



On Oct 31, 1:40 pm, William James <w_a_x_...@xxxxxxxxx> wrote:
On Oct 31, 6:08 am, Ali <emailalicl...@xxxxxxxxx> wrote:

Hi,

Just watched Guy Steele's Growing a Language (http://video.google.com/
videoplay?docid=-8860158196198824415), very impressive.

Lisp got plus points for being able to abstract both abstract syntax
and function calls.

Here's a (hopefully) fun question: If Lisp didn't have a string data
type already, could you grow one which was indistinguishable from the
standard implementation, including double quote delimiters?

I don't expect this to be answered because I don't think I know any
language which can do this

This is trivial in Forth.  The limitation is that the
opening double-quote mark must be followed by a space.

Instead of
  "foo-bar"
you would have
  " foo-bar"

Nice one. Can you do it in Lisp? Does " foo-bar" -> " foo-bar" ?
.



Relevant Pages

  • Re: Matrices?
    ... matrix algebra, in other words you either use someone's library ... implementation of any language worth a damn ought to have a way to ... Partly because there isn't a standard implementation of pretty much ...
    (comp.lang.scheme)
  • Re: Matrices?
    ... matrix algebra, in other words you either use someone's library ... implementation of any language worth a damn ought to have a way to ... Partly because there isn't a standard implementation of pretty much ...
    (comp.lang.scheme)
  • Re: Growing a data type?
    ... standard implementation, including double quote delimiters? ... Changing how the reader works and pondering implementation of data ...
    (comp.lang.lisp)