Re: Growing a data type?
- From: "milanj@xxxxxxxxx" <milanj@xxxxxxxxx>
- Date: Fri, 31 Oct 2008 04:48:34 -0700 (PDT)
On Oct 31, 12:08 pm, Ali <emailalicl...@xxxxxxxxx> wrote:
Hi,string is vector with character as element-type so sure you can have
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 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
.
- References:
- Growing a data type?
- From: Ali
- Growing a data type?
- Prev by Date: Re: Online Programs Lisp
- Next by Date: Re: Growing a data type?
- Previous by thread: Growing a data type?
- Next by thread: Re: Growing a data type?
- Index(es):
Relevant Pages
|