[plt-scheme] apply syntactically bound (was RE: [plt-bug]

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Jun 4 13:40:49 EDT 2010

At Fri, 4 Jun 2010 19:33:57 +0200, "Jos Koot" wrote:
> It seems to me that inclusion of identifier syntaxes introduces
> a little inconsistency between symbols having a syntactic binding or a
> simple variable binding.

I think that `namespace-variable-binding' is likely the problem, in
that it exposes too much information.

In contrast, if you use `dynamic-require' like

  (dynamic-require 'racket/base 'apply)

then you don't have to know whether `apply' is bound as a variable or
as syntax. The `dynamic-require' function correctly hides the
difference.



Posted on the users mailing list.