Gmail Kalender Dokumenter Leser Nett mer »
Sist besøkte grupper | Hjelp | Logg på
Hjemmesiden for Google Grupper
I can not find a word better than "CAR"
Antallet emner som vises øverst for denne gruppen er for stort. For å vise dette emnet øverst må du først fjerne dette valget fra et annet emne.
Det oppstod en feil ved behandling av forespørselen din. Prøv igjen.
flagg
  Meldinger 1 - 25 av 62 - Skjul alle  -  Oversett alle til Oversatte (vis alle originaler)   Nyere >
Gruppen du sender innlegg til, er en Usenet-gruppe. E-postadressen til forfatteren av meldinger som legges inn i denne gruppen, vil vises for alle på Internett.
Svarmeldingen ble ikke sendt.
Meldingen ble sendt
 
Fra:
Til:
Kopi:
Oppfølging til:
Legg til kopi | Legg til oppfølging til | Rediger emne
Emne:
Godkjenning:
Skriv tegnene i bildet nedenfor eller tallene du hører ved å klikke på tilgjengelighetsikonet. Dette er en sikkerhetsprosedyre. Hør etter, og skriv inn tallene du hører
 
rwander...@rsw.digi.com.br  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 14 Jun 2009, 21:47
Nyhetsgrupper: comp.lang.lisp
Fra: rwander...@rsw.digi.com.br
Dato: Sun, 14 Jun 2009 16:47:35 -0300
Lokal: Søn 14 Jun 2009 21:47
Emne: Re: I can not find a word better than "CAR"

r...@zedat.fu-berlin.de (Stefan Ram) writes:
>   I could use »first component« and »second component«, but this
>   is a two-word term (compound term). I do not deem compound
>   terms to be appropriate for such fundamental concepts. For the
>   same reason, I prefer »pair« to »2-tuple«. A 2-tuple might
>   have a »first component« and a »second component«, but a pair
>   should have a CAR and a CDR (or some other single-word term).

What about just >>first<< and >>second<<?

Rodrigo


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Slobodan Blazeski  
Vis profil   Oversett til Oversatt (vis original)
(1 bruker)  Flere alternativer 14 Jun 2009, 22:34
Nyhetsgrupper: comp.lang.lisp
Fra: Slobodan Blazeski <slobodan.blaze...@gmail.com>
Dato: Sun, 14 Jun 2009 13:34:24 -0700 (PDT)
Lokal: Søn 14 Jun 2009 22:34
Emne: Re: I can not find a word better than "CAR"
On Jun 14, 9:47 pm, rwander...@rsw.digi.com.br wrote:

> r...@zedat.fu-berlin.de (Stefan Ram) writes:
> >   I could use »first component« and »second component«, but this
> >   is a two-word term (compound term). I do not deem compound
> >   terms to be appropriate for such fundamental concepts. For the
> >   same reason, I prefer »pair« to »2-tuple«. A 2-tuple might
> >   have a »first component« and a »second component«, but a pair
> >   should have a CAR and a CDR (or some other single-word term).

> What about just >>first<< and >>second<<?

Head & Tail perhaps.

Bobi
http://www.linkedin.com/pub/slobodan-blazeski/6/b9b/151


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Scott Burson  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 14 Jun 2009, 22:56
Nyhetsgrupper: comp.lang.lisp
Fra: Scott Burson <FSet....@gmail.com>
Dato: Sun, 14 Jun 2009 13:56:48 -0700 (PDT)
Lokal: Søn 14 Jun 2009 22:56
Emne: Re: I can not find a word better than "CAR"
On Jun 14, 1:34 pm, Slobodan Blazeski <slobodan.blaze...@gmail.com>
wrote:

> Head & Tail perhaps.

"Head" and "tail" are my favorites too.  I like them better than
"first" and "rest" because the latter terms are more abstract and
could apply to sequences implemented in other ways than as lists.
"Head" and "tail", on the other hand, seem to me to refer specifically
to the structure of a list.

Of course I don't mind "car" and "cdr", but this is just from
training :)

-- Scott


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pascal Costanza  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 14 Jun 2009, 23:20
Nyhetsgrupper: comp.lang.lisp
Fra: Pascal Costanza <p...@p-cos.net>
Dato: Sun, 14 Jun 2009 23:20:56 +0200
Lokal: Søn 14 Jun 2009 23:20
Emne: Re: I can not find a word better than "CAR"

Scott Burson wrote:
> On Jun 14, 1:34 pm, Slobodan Blazeski <slobodan.blaze...@gmail.com>
> wrote:
>> Head & Tail perhaps.

> "Head" and "tail" are my favorites too.  I like them better than
> "first" and "rest" because the latter terms are more abstract and
> could apply to sequences implemented in other ways than as lists.
> "Head" and "tail", on the other hand, seem to me to refer specifically
> to the structure of a list.

> Of course I don't mind "car" and "cdr", but this is just from
> training :)

Cons cells can be used for things other than lists. For example, trees
and just pairs.

Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pascal J. Bourguignon  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 14 Jun 2009, 23:28
Nyhetsgrupper: comp.lang.lisp
Fra: p...@informatimago.com (Pascal J. Bourguignon)
Dato: Sun, 14 Jun 2009 23:28:58 +0200
Lokal: Søn 14 Jun 2009 23:28
Emne: Re: I can not find a word better than "CAR"

Slobodan Blazeski <slobodan.blaze...@gmail.com> writes:
> On Jun 14, 9:47 pm, rwander...@rsw.digi.com.br wrote:
>> r...@zedat.fu-berlin.de (Stefan Ram) writes:
>> >   I could use »first component« and »second component«, but this
>> >   is a two-word term (compound term). I do not deem compound
>> >   terms to be appropriate for such fundamental concepts. For the
>> >   same reason, I prefer »pair« to »2-tuple«. A 2-tuple might
>> >   have a »first component« and a »second component«, but a pair
>> >   should have a CAR and a CDR (or some other single-word term).

>> What about just >>first<< and >>second<<?

> Head & Tail perhaps.

Head and Tail are asymetric and presuppose a list structure.
First and Second expect a Third and Fourth and so on.

CAR and CDR are agnostic.

Alternatives would be: Top and Bottom, Up and Down, Left and Right,
Charm and Strange, Yin and Yang, etc. but they're all overloaded.  At
least CAR and CDR are specific to computer pairs.

--
__Pascal Bourguignon__


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Vsevolod Dyomkin  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 14 Jun 2009, 23:31
Nyhetsgrupper: comp.lang.lisp
Fra: Vsevolod Dyomkin <vselo...@gmail.com>
Dato: Sun, 14 Jun 2009 14:31:32 -0700 (PDT)
Lokal: Søn 14 Jun 2009 23:31
Emne: Re: I can not find a word better than "CAR"
On Jun 14, 10:47 pm, rwander...@rsw.digi.com.br wrote:

> r...@zedat.fu-berlin.de (Stefan Ram) writes:
> >   I could use »first component« and »second component«, but this
> >   is a two-word term (compound term). I do not deem compound
> >   terms to be appropriate for such fundamental concepts. For the
> >   same reason, I prefer »pair« to »2-tuple«. A 2-tuple might
> >   have a »first component« and a »second component«, but a pair
> >   should have a CAR and a CDR (or some other single-word term).

> What about just >>first<< and >>second<<?

> Rodrigo

As noted many times before, car & cdr have a good property of nesting:
caar, cadar and even cadadar :)

You can try fst & rst: frst, frrst,-- for that as well. But it as well
(like car/cdr) requires getting used to.

Other variants don't seem to work

Best regards,
Vsevolod


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Mark Cox  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 14 Jun 2009, 23:44
Nyhetsgrupper: comp.lang.lisp
Fra: Mark Cox <markco...@gmail.com>
Dato: Mon, 15 Jun 2009 07:44:19 +1000
Lokal: Søn 14 Jun 2009 23:44
Emne: Re: I can not find a word better than "CAR"

Scott Burson <FSet....@gmail.com> writes:
> On Jun 14, 1:34 pm, Slobodan Blazeski <slobodan.blaze...@gmail.com>
> wrote:

>> Head & Tail perhaps.

> "Head" and "tail" are my favorites too.  I like them better than
> "first" and "rest" because the latter terms are more abstract and
> could apply to sequences implemented in other ways than as lists.
> "Head" and "tail", on the other hand, seem to me to refer specifically
> to the structure of a list.

I'm not 100% sure on this, but I'd say that the shortcuts of the
composed forms were of importance as well (if not greater importance
given the number of shortcuts defined in the standard). For example:

(car (cdr x))

can be rewritten as a single function

(cadr x).

I know the shortcuts are somewhat frowned upon now, but perhaps there is
time in lisp's history when the shortcuts may have been common practice.
Take all this with a grain of salt. Part of me has always wondered why
they were even specified in the standard way down to CDDDDR. Can someone
enlighten me?

I wish I had the neurons and synapses that allowed me to navigate my
data structures using CADAAR and CADADR! Maybe the coffee was much
better in the past.

Mark


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Rob Warnock  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 06:23
Nyhetsgrupper: comp.lang.lisp
Fra: r...@rpw3.org (Rob Warnock)
Dato: Sun, 14 Jun 2009 23:23:38 -0500
Lokal: Man 15 Jun 2009 06:23
Emne: Re: I can not find a word better than "CAR"
Mark Cox  <markco...@gmail.com> wrote:
+---------------
| I wish I had the neurons and synapses that allowed me
| to navigate my data structures using CADAAR and CADADR!
+---------------

The one place I find myself frequently using CDD*R
is in destructuring lists by "gulps" in LOOP, e.g.:

    > (defun group-by-triples (list)
        (loop for (a b c) on list by #'cdddr
          collect (list a b c)))

    GROUP-BY-TRIPLES
    > (group-by-triples '(0 1 2 3 4 5 6 7 8 9 10 11 12))

    ((0 1 2) (3 4 5) (6 7 8) (9 10 11) (12 NIL NIL))
    >

Note: Whether sublist (12 NIL NIL) is the "correct" result or a "bug"
depends upon your application. Adjusting the function so that the last
sublist is (12) is left as an exercise for the reader.  ;-}  ;-}

-Rob

-----
Rob Warnock                     <r...@rpw3.org>
627 26th Avenue                 <URL:http://rpw3.org/>
San Mateo, CA 94403             (650)572-2607


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Scott Burson  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 07:28
Nyhetsgrupper: comp.lang.lisp
Fra: Scott Burson <FSet....@gmail.com>
Dato: Sun, 14 Jun 2009 22:28:04 -0700 (PDT)
Lokal: Man 15 Jun 2009 07:28
Emne: Re: I can not find a word better than "CAR"
On Jun 14, 2:20 pm, Pascal Costanza <p...@p-cos.net> wrote:

True.  But CL itself defines `first' and `rest' as synonyms of `car'
and `cdr'.  I was just explaining why I like `head' and `tail' better.

Personally, I tend to use `car' and `cdr', and I agree that there are
situations where these semantically unloaded terms are the only ones
that really work.  But for those who would like to use more
semantically loaded terms in the extremely common case that the conses
form a list, I recommend `head' and `tail'.

-- Scott


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Scott Burson  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 07:29
Nyhetsgrupper: comp.lang.lisp
Fra: Scott Burson <FSet....@gmail.com>
Dato: Sun, 14 Jun 2009 22:29:01 -0700 (PDT)
Lokal: Man 15 Jun 2009 07:29
Emne: Re: I can not find a word better than "CAR"
On Jun 14, 2:28 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:

> Alternatives would be: Top and Bottom, Up and Down, Left and Right,
> Charm and Strange, Yin and Yang, etc. but they're all overloaded.  At
> least CAR and CDR are specific to computer pairs.

Hey, `yin' and `yang', I like that!

-- Scott


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Madhu  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 07:50
Nyhetsgrupper: comp.lang.lisp
Fra: Madhu <enom...@meer.net>
Dato: Mon, 15 Jun 2009 11:20:31 +0530
Lokal: Man 15 Jun 2009 07:50
Emne: Re: I can not find a word better than "CAR"

[At last, a *real* toy example to nitpick :)]

* (Rob Warnock) <_qudnZGHoOhXUajXnZ2dnUVZ_tmdn...@speakeasy.net> :
Wrote on Sun, 14 Jun 2009 23:23:38 -0500:
|
| The one place I find myself frequently using CDD*R is in destructuring
| lists by "gulps" in LOOP, e.g.:
|
|     > (defun group-by-triples (list)
|       (loop for (a b c) on list by #'cdddr
|         collect (list a b c)))
|
|     GROUP-BY-TRIPLES
|     > (group-by-triples '(0 1 2 3 4 5 6 7 8 9 10 11 12))
|
|     ((0 1 2) (3 4 5) (6 7 8) (9 10 11) (12 NIL NIL))
|     >
|
| Note: Whether sublist (12 NIL NIL) is the "correct" result or a "bug"
| depends upon your application. Adjusting the function so that the last
| sublist is (12) is left as an exercise for the reader.  ;-} ;-}

You clearly don't want (12) in the output list because then you have a
situation where the accursed recursive solution is preferable over using
our glorious LOOP:

(defun group-by-triples (list &optional ret)
  (if (some (lambda (x) (endp (funcall x list))) '(cdddr cddr cdr))
      (nreconc ret (list list))
      (group-by-triples (cdddr list) (cons (ldiff list (cdddr list)) ret))))

And of course, if you are the inveterate CADDARing aesthete, the

        (ldiff list (cdddr list))

would be written as

        (cons (car list) (cons (cadr list) (cons (caddr list) nil)))

--
Madhu


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pascal Costanza  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 08:19
Nyhetsgrupper: comp.lang.lisp
Fra: Pascal Costanza <p...@p-cos.net>
Dato: Mon, 15 Jun 2009 08:19:44 +0200
Lokal: Man 15 Jun 2009 08:19
Emne: Re: I can not find a word better than "CAR"

Ah, ok.

Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pascal J. Bourguignon  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 10:19
Nyhetsgrupper: comp.lang.lisp
Fra: p...@informatimago.com (Pascal J. Bourguignon)
Dato: Mon, 15 Jun 2009 10:19:39 +0200
Lokal: Man 15 Jun 2009 10:19
Emne: Re: I can not find a word better than "CAR"

It's an error to believe that first and rest are synonymous to car and
cdr.  There's a big difference: first and rest apply on lists, while
car and cdr apply on cons cells.

> I was just explaining why I like `head' and `tail' better.

> Personally, I tend to use `car' and `cdr', and I agree that there are
> situations where these semantically unloaded terms are the only ones
> that really work.  

Yes.

> But for those who would like to use more
> semantically loaded terms in the extremely common case that the conses
> form a list, I recommend `head' and `tail'.

Not in lisp, where the traditionnal way to decompose lists is by first
and rest.

Notice that a tail doesn't start from the head, but from the end of
the body.  If you had head, body, tail, then perhaps head and tail
could be used (along with body).

(defun head (x) (first x))
(defun body (x) (rest (butlast x)))
(defun tail (x) (first (last x)))

--
__Pascal Bourguignon__


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Raffael Cavallaro  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 17:51
Nyhetsgrupper: comp.lang.lisp
Fra: Raffael Cavallaro <raffaelcavall...@pas.espam.s.il.vous.plait.mac.com>
Dato: Mon, 15 Jun 2009 11:51:26 -0400
Lokal: Man 15 Jun 2009 17:51
Emne: Re: I can not find a word better than "CAR"
On 2009-06-14 17:28:58 -0400, p...@informatimago.com (Pascal J.
Bourguignon) said:

> Alternatives would be: Top and Bottom, Up and Down, Left and Right,
> Charm and Strange, Yin and Yang, etc. but they're all overloaded.  At
> least CAR and CDR are specific to computer pairs.

THIS and THAT, and they're composable too!

cadr = thiat
cddr = thaat
caaadr = thiiiat
cdar = thais

;^)
--
Raffael Cavallaro


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pillsy  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 18:53
Nyhetsgrupper: comp.lang.lisp
Fra: Pillsy <pillsb...@gmail.com>
Dato: Mon, 15 Jun 2009 09:53:02 -0700 (PDT)
Lokal: Man 15 Jun 2009 18:53
Emne: Re: I can not find a word better than "CAR"
On Jun 14, 5:28 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
[...]

> Alternatives would be: Top and Bottom, Up and Down, Left and Right,
> Charm and Strange, Yin and Yang, etc. but they're all overloaded.  At
> least CAR and CDR are specific to computer pairs.

The publishers of the venerable /Car and Driver/ magazine only half
agree. ;)

Cheers,
Pillsy


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Ron Garret  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 18:54
Nyhetsgrupper: comp.lang.lisp
Fra: Ron Garret <rNOSPA...@flownet.com>
Dato: Mon, 15 Jun 2009 09:54:32 -0700
Lokal: Man 15 Jun 2009 18:54
Emne: Re: I can not find a word better than "CAR"
In article <87k53d29k4....@galatea.local>,
 p...@informatimago.com (Pascal J. Bourguignon) wrote:

Not so.  Cons cells and lists are not distinct in Lisp.  The standard
*defines* FIRST to be synonymous with CAR and REST to be synonymous with
CDR.  It may be a good idea to keep the two concepts distinct, but
Common Lisp doesn't enforce -- or even support -- any distinction.  Some
people consider this a feature.

rg


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Ron Garret  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 19:05
Nyhetsgrupper: comp.lang.lisp
Fra: Ron Garret <rNOSPA...@flownet.com>
Dato: Mon, 15 Jun 2009 10:05:08 -0700
Lokal: Man 15 Jun 2009 19:05
Emne: Re: I can not find a word better than "CAR"
In article <h15qlu$f7...@news.eternal-september.org>,
 Raffael Cavallaro <raffaelcavall...@pas.espam.s.il.vous.plait.mac.com>

I like it :-)

I'm personally a fan of FST and RST, but if you really want something
concise that doesn't evoke lists I'd suggest SEL and SER for SElect Left
and SElect Right.  These are also composable in the obvious way. Or if
you don't like Left and Right, you can do SEA/SEB, or SEX/SEY, SEA/SEZ,
or SEA/SEO (for Alpha and Omega).  If you have a unicode-aware Lisp you
can even put real alpha and omega characters in there.

rg


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
P M  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 19:06
Nyhetsgrupper: comp.lang.lisp
Fra: P M <pls.m...@gmail.com>
Dato: Mon, 15 Jun 2009 10:06:49 -0700 (PDT)
Lokal: Man 15 Jun 2009 19:06
Emne: Re: I can not find a word better than "CAR"
On 14 Giu, 20:48, r...@zedat.fu-berlin.de (Stefan Ram) wrote:

>   [ »CAR« and »CDR« ]

Just stay with CAR and CDR, and find some reasonable abbreviation by
yourself:

CAR - cons antecedent referrer
CDR - cons descendent referrer

My English is not so good, and it's only a first try.
Your turn!


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pascal J. Bourguignon  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 19:27
Nyhetsgrupper: comp.lang.lisp
Fra: p...@informatimago.com (Pascal J. Bourguignon)
Dato: Mon, 15 Jun 2009 19:27:03 +0200
Lokal: Man 15 Jun 2009 19:27
Emne: Re: I can not find a word better than "CAR"

And I have the regret to inform you that you are not distinct from
your mass of lead.  Same number of quarks, same forces.  The universe
doesn't enforce any distinction here either.  And yes, it's a feature
too :-)

--
__Pascal Bourguignon__


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Pascal J. Bourguignon  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 19:32
Nyhetsgrupper: comp.lang.lisp
Fra: p...@informatimago.com (Pascal J. Bourguignon)
Dato: Mon, 15 Jun 2009 19:32:45 +0200
Lokal: Man 15 Jun 2009 19:32
Emne: Re: I can not find a word better than "CAR"

Pillsy <pillsb...@gmail.com> writes:
> On Jun 14, 5:28 pm, p...@informatimago.com (Pascal J. Bourguignon)
> wrote:
> [...]
>> Alternatives would be: Top and Bottom, Up and Down, Left and Right,
>> Charm and Strange, Yin and Yang, etc. but they're all overloaded.  At
>> least CAR and CDR are specific to computer pairs.

> The publishers of the venerable /Car and Driver/ magazine only half
> agree. ;)

Notice the difference between CAR and car.  The former is a TLA
standing for Content of Address Register part, the later is a word
derived from latin carrum designating a celtic two-wheeled war chariot.

Long life to case sensitivity!
--
__Pascal Bourguignon__


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
kodifik  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 19:55
Nyhetsgrupper: comp.lang.lisp
Fra: kodifik <kodi...@eurogaran.com>
Dato: Mon, 15 Jun 2009 10:55:55 -0700 (PDT)
Lokal: Man 15 Jun 2009 19:55
Emne: Re: I can not find a word better than "CAR"
> Notice that a tail doesn't start from the head, but from the end of
> the body.

It can start from the head, as seen in annelid worms.

    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
kodifik  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 20:00
Nyhetsgrupper: comp.lang.lisp
Fra: kodifik <kodi...@eurogaran.com>
Dato: Mon, 15 Jun 2009 11:00:27 -0700 (PDT)
Lokal: Man 15 Jun 2009 20:00
Emne: Re: I can not find a word better than "CAR"
Another evoking possibility is cock and tail.
(Oh! Now I realize they could be interpreted as meaning the same! ;)

    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Thomas A. Russ  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 18:36
Nyhetsgrupper: comp.lang.lisp
Fra: t...@sevak.isi.edu (Thomas A. Russ)
Dato: 15 Jun 2009 09:36:23 -0700
Lokal: Man 15 Jun 2009 18:36
Emne: Re: I can not find a word better than "CAR"

r...@zedat.fu-berlin.de (Stefan Ram) writes:
>   I was searching for a word referring to the »x« and
>   »y« in the relation »R(x,y)«. Assume, for a moment,
>   the word would be »alpha« and »beta«, respectively,
>   then I would like to write this explanation of "is a":

>     "is a"
>     the relation, where the alpha is an instance of the beta

>   I looked up these web pages to find common, simple words for
>   the placeholders »alpha« and »beta«:

Well, I would expect that the most standard mathemtical terminology
would use "domain" and "range" for those concepts.

This meets your desire (below) of not having multiple word terms.
Otherwise I would use "argument 1" and "argument 2".  These could be
abbreviated as arg1 and arg2, which would parallel the standard
mathematical notation of tuples (which is what relations are) of using a
sequence like

    <a1, ... , aN>

>   I could use Ž»first componentŽ« and Ž»second componentŽ«, but this
>   is a two-word term (compound term). I do not deem compound
>   terms to be appropriate for such fundamental concepts. For the
>   same reason, I prefer Ž»pairŽ« to Ž»2-tupleŽ«. A 2-tuple might
>   have a Ž»first componentŽ« and a Ž»second componentŽ«, but a pair
>   should have a CAR and a CDR (or some other single-word term).

--
Thomas A. Russ,  USC/Information Sciences Institute

    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Thomas A. Russ  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 18:39
Nyhetsgrupper: comp.lang.lisp
Fra: t...@sevak.isi.edu (Thomas A. Russ)
Dato: 15 Jun 2009 09:39:11 -0700
Lokal: Man 15 Jun 2009 18:39
Emne: Re: I can not find a word better than "CAR"

Slobodan Blazeski <slobodan.blaze...@gmail.com> writes:
> On Jun 14, 9:47Ž pm, rwander...@rsw.digi.com.br wrote:
> > r...@zedat.fu-berlin.de (Stefan Ram) writes:
> > > ޠ I could use ޻first componentޫ and ޻second componentޫ, but this
> > > Ž  is a two-word term (compound term). I do not deem compound
> > > Ž  terms to be appropriate for such fundamental concepts. For the
> > > ޠ same reason, I prefer ޻pairޫ to ޻2-tupleޫ. A 2-tuple might
> > > ޠ have a ޻first componentޫ and a ޻second componentޫ, but a pair
> > > Ž  should have a CAR and a CDR (or some other single-word term).

> > What about just >>first<< and >>second<<?

> Head & Tail perhaps.

The problem that I see with HEAD and TAIL is that they make me think of
two different types of structures.  Granted, they are isomorphic to CAR
and CDR, but on reflection that really just points up a problem with the
original formulation.  The proper terms would really be CAR and CADR
(paralleling FIRST and SECOND).

--
Thomas A. Russ,  USC/Information Sciences Institute


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Ron Garret  
Vis profil   Oversett til Oversatt (vis original)
 Flere alternativer 15 Jun 2009, 20:45
Nyhetsgrupper: comp.lang.lisp
Fra: Ron Garret <rNOSPA...@flownet.com>
Dato: Mon, 15 Jun 2009 11:45:59 -0700
Lokal: Man 15 Jun 2009 20:45
Emne: Re: I can not find a word better than "CAR"
In article <87fxe11k7s....@galatea.local>,
 p...@informatimago.com (Pascal J. Bourguignon) wrote:

That's a very bad analogy.  The universe does enforce many distinctions
between me and a block of lead, or even between a block of lead and a
block of gold, to the dismay of many an alchemist.  In fact, it is
precisely those distinctions that make it possible to distinguish
between lead and gold.

The distinction between cons cells and lists in Lisp, by way of
contrast, is purely one of convention.  If I give you a block of metal
that is either lead or gold and ask you which it is you'll have no
trouble answering.  On the other hand, if I give you a data structure
returned by the CONS function and ask you if it's a list or a cons cell
there's no way for you to tell.  There *is* no "right answer".

rg


    Videresend  
Du må logge deg på før du kan legge inn meldinger.
For å kunne legge inn meldinger må du først bli med i denne gruppen.
Oppdater kallenavnet på siden for abonnementsinnstillinger før du legger inn meldinger.
Du har ikke tillatelse til å legge inn meldinger.
Meldinger 1 - 25 av 62   Nyere >
« Tilbake til diskusjoner « Nyere tema     Eldre tema »

Opprett en gruppe - Google Grupper - Googles hjemmeside - Vilkår for bruk - Retningslinjer for personvern
©2010 Google