Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I don't get it.

Name: Anonymous 2010-07-23 16:33

What's wrong with my naming convention for types?


typedef struct {
  int a;
  int b;
} tPair;

Name: not >>4 2010-07-24 1:21

>>12

>>4 is actually accurate. Cons cells are just pairs of two arbitrary objects. Chains of cons cells such as yours form lists (and if they are terminated by a NIL symbol or end-of-list object (depends on language and if they are different), it's called a proper list). Improper lists or just any kind of pair usage is perfectly legitimate Lisp usage. >>12 maye be the case for ML or Haskell, but in dynamically typed languages , like most Lisps, >>4's definition is the one used.

Name: Anonymous 2010-07-24 1:21

>>12
Nope, there is nothing that says the cdr of a pair has to be a pair.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List