Re: Growing a data type?



On Fri, 31 Oct 2008 08:36:12 -0700, Ali wrote:

I think Guy Steele has more interesting things in mind than
reimplementing strings.

I'm not Guy Steele, I have boring things in mind such as seeing if this
theme can be extended across to the area of data types.

Why should I care? Its not interesting to you, but in case you've missed
the fact, I'll tell you:
Programs are pretty pointless without a concept of data. That is why I
find the question both interesting and important.

Indeed. But if you have basic data types (numbers, arrays, structs,
lists) that all major languages possess nowadays, you can always
implement new data types by combining them. In this sense your question
is trivial - if Lisp didn't have strings, there would be a zillion ways
to implement them as sequences of characters, index->character has
tables, or whatever (some of course make more sense than others). The
same applies to other general languages.

The other aspect is providing a read syntax, which is not that important
anyhow for new data types, but milanj answered this questions for you.

I may have misread your post, but I see it as both a) condescending, and
b) lacking anything interesting in itself.

Although I don't mind either of those properties on their own, when
combined, a magical process occurs in my brain where I start thinking
less of you, no matter how good a Lisp hacker you are.

And no, my question wasn't the best in the world, it was merely aimed at
producing some interesting conversation.

No, you were asking about something trivial that you could have found out
for yourself easily.

Please understand that for some reason c.l.l attracts a whole bunch of
clowns (I am not implying that you are one of them) who have no desire to
program Lisp, just keep asking questions or emitting utterances they
think are profound, so people reading this NG are a bit tired of things
like that.

HTH,

Tamas
.



Relevant Pages

  • Re: functional ADT / shadowing built-in destructive macros
    ... > specialized to do the right thing on functional data types. ... > I'm assuming this is because cl:push is implemented as a macro, ... The real problem is that Lisp lists are not really first class ... cells--each time you push a new item on the stack, ...
    (comp.lang.lisp)
  • Re: Which programming language is better to start
    ... >> A lisp programmer would do the string match above either using ... >> Lisp supports structured data types through deftype and defstruct, ... >> complex data types it's normal to use lists. ... I don't think lists are used that much for "complex" data types. ...
    (comp.programming)
  • Re: functional ADT / shadowing built-in destructive macros
    ... So I decided to try shadowing push, and implementing it as a generic function that defaults to calling cl:push, with other methods specialized to do the right thing on functional data types. ... Most destructive operators in Common Lisp already have non-destructive equivalents... ...
    (comp.lang.lisp)
  • Re: Lisp, C++ and game development
    ... > but my gut reaction would be to say 'no', only because games are simple ... > some of these data types being used, ... Way back when Lisp was young people were ... All that despite these languages all being ...
    (comp.lang.lisp)
  • Re: wait until appears in string
    ... > YHO is wrong, according to the standard: ... What I had in mind is that ... IMHO they don't exist as data types, ...
    (comp.lang.c)