Re: Undefined in LISP

Liste des GroupesRevenir à cl lisp 
Sujet : Re: Undefined in LISP
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.lisp
Date : 22. Mar 2025, 20:55:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87jz8glu1o.fsf@nightsong.com>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Daniel Cerqueira <dan.list@lispclub.com> writes:
 Should an undefined expression be represented by a symbol, or should
an undefined expression be silent (without returning a symbol)?

Symbols are values in Lisp, so if an "undefined expression" returns a
symbol, then it's not undefined.  That symbol is the definition.

Can you give an example of an undefined expression?  In denotational
semantics, a divergent expression is represented by the symbol ⊥ ("bottom",
_|_ if the unicode glyph didn't show up for you).  That's what happens
if you try to evaluate something like 1/0.  Bottom is not a value that
is returned, but rather, it means the program fails.  The runtime could
handle it as a crash, an exception being raised, an infinite loop, etc.
Those are all examples of divergence.

I don't know if that is helpful for what you were asking.  See also:

https://en.wikibooks.org/wiki/Haskell/Denotational_semantics

Date Sujet#  Auteur
21 Mar 25 * Undefined in LISP22Daniel Cerqueira
22 Mar 25 +- Re: Undefined in LISP1Jeff Barnett
22 Mar 25 +- Re: Undefined in LISP1Alan Bawden
22 Mar 25 +- Re: Undefined in LISP1Kaz Kylheku
22 Mar 25 +* Re: Undefined in LISP15Lawrence D'Oliveiro
22 Mar 25 i`* Re: Undefined in LISP14Daniel Cerqueira
22 Mar 25 i `* Re: Undefined in LISP13Lawrence D'Oliveiro
23 Mar 25 i  `* Re: Undefined in LISP12Daniel Cerqueira
23 Mar 25 i   +- Re: Undefined in LISP1Jeff Barnett
24 Mar 25 i   +* Re: Undefined in LISP9Lawrence D'Oliveiro
24 Mar 25 i   i+* Re: Undefined in LISP3Kaz Kylheku
24 Mar 25 i   ii+- Re: Undefined in LISP1Paul Rubin
24 Mar 25 i   ii`- txr [was Re: Undefined in LISP1Madhu
24 Mar 25 i   i`* Re: Undefined in LISP5Daniel Cerqueira
24 Mar 25 i   i `* Re: Undefined in LISP4Lawrence D'Oliveiro
27 Mar 25 i   i  `* Re: Undefined in LISP3Robert Girault
29 Mar 25 i   i   `* Re: Undefined in LISP2Daniel Cerqueira
29 Mar 25 i   i    `- Re: Undefined in LISP1Lawrence D'Oliveiro
22 Apr 25 i   `- Re: Undefined in LISP1Kevin J Witczak
22 Mar 25 `* Re: Undefined in LISP3Paul Rubin
23 Mar 25  `* Re: Undefined in LISP2Stefan Ram
24 Mar 25   `- Re: Undefined in LISP1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal