unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jean Abou Samra <jean@abou-samra.fr>
To: Timothy Sample <samplet@ngyro.com>
Cc: guile-user@gnu.org
Subject: Re: Inconsistencies with free-identifier=? and bound-identifier=?
Date: Fri, 28 Jul 2023 12:08:12 +0200	[thread overview]
Message-ID: <5220c556c61f2a2d888231bb974464b252f264d0.camel@abou-samra.fr> (raw)
In-Reply-To: <875y65hupe.fsf@ngyro.com>

[-- Attachment #1: Type: text/plain, Size: 1852 bytes --]

Le jeudi 27 juillet 2023 à 16:10 -0600, Timothy Sample a écrit :
> A quick follow-up.
> 
> Timothy Sample <samplet@ngyro.com> writes:
> 
> > Lastly, you should read section 3.1 of “Binding as Sets of Scopes”:
> > 
> >    
> > https://www-old.cs.utah.edu/plt/scope-sets/general-macros.html#%28part._.Identifier_.Comparisons_with_.Scope_.Sets%29
> > 
> > It shows that ‘bound-identifier=?’ gives false negatives in both
> > sets-of-scopes and marks-and-substitutions hygiene systems.  (I didn’t
> > 
> > test that example or anything, but I thought it fit the theme of
> > identifier predicate arcana pretty well.)
> 
> Actually, read section 3.2.  It covers your example exactly.  Discussing
> the example
> 
> > (free-identifier=? (let ([x 1]) #'x)
> >                    #'x)
> 
> it says,
> 
> > Note: Racket’s macro system matches Dybvig et al. (1993), where both
> > free-identifier=? and bound-identifier=? produce #f for the above
> > arguments, and bound-identifier=? always implies
> > free-identifier=?. The current psyntax implementation, as used by Chez
> > Scheme and other implementations and as consistent with Adams (2015),
> > produces #f and #t for free-identifier=? and bound-identifier=?,
> > respectively; as the example illustrates, bound-identifier=? does not
> > imply free-identifier=?. The set-of-scopes system produces #t and #t
> > for free-identifier=? and bound-identifier=?, respectively, and
> > bound-identifier=? always implies free-identifier=?.
> 
> You can actually control what ‘free-identifier=?’ returns for the above
> example using “scope pruning” when quoting syntax.  Those Racketeers
> really have their act together....  :)


Oh, wow! I definitely need to read that paper. Thank you very much.

Cheers,
Jean




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-07-28 10:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-21  0:20 Inconsistencies with free-identifier=? and bound-identifier=? Jean Abou Samra
2023-07-21  9:08 ` Jean Abou Samra
2023-07-27 18:28 ` Timothy Sample
2023-07-27 22:10   ` Timothy Sample
2023-07-28 10:08     ` Jean Abou Samra [this message]
2023-07-28 10:09   ` Jean Abou Samra
2023-07-29  4:37     ` Timothy Sample

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/guile/

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

  git send-email \
    --in-reply-to=5220c556c61f2a2d888231bb974464b252f264d0.camel@abou-samra.fr \
    --to=jean@abou-samra.fr \
    --cc=guile-user@gnu.org \
    --cc=samplet@ngyro.com \
    /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.
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).