Re: Growing a data type?



On Oct 31, 12:08 pm, 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, but it would be nice to see how much of
string could be implemented in Lisp.
string is vector with character as element-type so sure you can have
string class
also you can set reader to dispatch on " so you can have literal
strings
http://www.lispworks.com/documentation/HyperSpec/Body/02_add.htm

btw. in almost any language (known to me) string is specialized vector
(hmm, not in perl) ... but i dont know how you can solve literal
strings problem without messing with implementation
.



Relevant Pages

  • Re: Very poor Lisp performance
    ... > Do you mean it is difficult to implement infix in Lisp? ... I mean that designing a *good* macro system for an infix language is ... >> operates on code needs to operate at the abstract syntax level, ...
    (comp.lang.lisp)
  • Re: Growing a data type?
    ... Just watched Guy Steele's Growing a Language (http://video.google.com/ ... Lisp got plus points for being able to abstract both abstract syntax ...
    (comp.lang.lisp)
  • Re: The Common Lisp Directory rewritten in Python
    ... Python for Lisp hopefully only in one particular day ... Lisp with Python. ... passed from Lisp to Python by embedding it in Python code string, ... binding between Python and my language: ...
    (comp.lang.lisp)
  • Growing a data type?
    ... Just watched Guy Steele's Growing a Language (http://video.google.com/ ... Lisp got plus points for being able to abstract both abstract syntax ... If Lisp didn't have a string data ...
    (comp.lang.lisp)
  • Re: Growing a data type?
    ... Just watched Guy Steele's Growing a Language (http://video.google.com/ ... Lisp got plus points for being able to abstract both abstract syntax ... If Lisp didn't have a string data ...
    (comp.lang.lisp)