unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: MON KEY <monkey@sandpframing.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Save `nil' from the mutant void, preserve the truth of falsehood, prevent the falsehood of truth
Date: Tue, 14 Sep 2010 01:11:09 -0400	[thread overview]
Message-ID: <AANLkTinch3z_tD4qc2BjW5YD-VmZo_1kbLUm=sqo4GhH@mail.gmail.com> (raw)
In-Reply-To: <jwvocc2vv3x.fsf-monnier+emacs@gnu.org>

On Mon, Sep 13, 2010 at 5:52 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> `#1=', and related reader syntax constructs aren't bad.
>
> In source code, they are.

I'll assume you are speaking only of #=<N> syntax.

> In source code, you have other ways to express sharing, such as `let', which
> are much preferred.

No doubt this is true for "top-level" shared/circular structure.
But what of lisp source code that evaluates to the non-preferred format?
I doubt the distinction is always quite so clear (or detectable).

>
>> Indeed, they are quite prevalent in byte-code files and the language
>> would be hamstrung without them.
>
> Which language?

The one comprised of s-expressions Printed for Read to Evaluate ad nauseam.

> Note that AFAIC .el and .elc files use 2 different languages.
>
>

Hrmmm.
Is there a know non-lisp interpreter for the non-lisp one?
Is it distributed with Emacs?
What is its license?
Where can I find its source code?

>> No, the argument to `unintern' can be a symbol or string.
>
> Who cares, it's still not a boolean.

So would you agree then that where `fboundp' shouldn't take a boolean neither
should `unitern'?

>
>>> - calling unintern without an obarray arg is a bad idea.
>> Yeah,
>

This elision conveniently ignores my caveats w/re the current use value of
Emacs "other" obarrays...

>
> So: why do you do it?
>

Why do i do what, unintern? To unintern a symbol of course :P
More specifically, redefining button-types and faces are good uses.

>> Yeah, but again there is the weird corner case of interning the 0
>> length string.
>
> What's weird about it?

Whats not?

(identity (intern ""))
;=>

(put (identity (intern-soft ""))
     (identity (intern-soft ""))
     (identity (intern-soft "")))
;=>

(get (identity (intern-soft ""))
     (identity (intern-soft "")))
;=>

(setq 0len (symbol-plist (identity (intern-soft ""))))
;=> ( )

(symbol-value '0len)
=> ( )

(car (symbol-value '0len))
=>

More specifically, what is the utility?

>
>        Stefan
>

On Mon, Sep 13, 2010 at 5:52 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> `#1=', and related reader syntax constructs aren't bad.
>
> In source code, they are.  In source code, you have other ways to
> express sharing, such as `let', which are much preferred.
>
>> Indeed, they are quite prevalent in byte-code files and the language
>> would be hamstrung without them.
>
> Which language?  Note that AFAIC .el and .elc files use
> 2 different languages.
>
>>> - unintern takes a symbol as argument, not a boolean, so it should
>>> not be called with the return value of (fboundp ...)
>> No, the argument to `unintern' can be a symbol or string.
>
> Who cares, it's still not a boolean.
>
>>> - calling unintern without an obarray arg is a bad idea.
>> Yeah,
>
> So: why do you do it?
>
>>> Maybe we should make the second argument mandatory.
>> That would be nice.
>
> Indeed.
>
>>> since `intern' only takes a string rather than a symbol.
>> Yeah, but again there is the weird corner case of interning the 0
>> length string.
>
> What's weird about it?
>
>
>        Stefan
>



  reply	other threads:[~2010-09-14  5:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-11 23:33 Save `nil' from the mutant void, preserve the truth of falsehood, prevent the falsehood of truth MON KEY
2010-09-12  0:16 ` Lars Magne Ingebrigtsen
2010-09-12 11:04 ` Andy Wingo
2010-09-12 14:00 ` Stefan Monnier
2010-09-13  0:16   ` MON KEY
2010-09-13  9:52     ` Stefan Monnier
2010-09-14  5:11       ` MON KEY [this message]
2010-09-14 11:14         ` Stefan Monnier
     [not found]         ` <51808.130.55.118.19.1284998205.squirrel@webmail.lanl.gov>
2010-09-22  1:37           ` MON KEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinch3z_tD4qc2BjW5YD-VmZo_1kbLUm=sqo4GhH@mail.gmail.com' \
    --to=monkey@sandpframing.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).