[racket-dev] syntax/stx vs racket/private/stx

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Mon May 16 08:43:14 EDT 2011

On Mon, May 16, 2011 at 8:36 AM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> On Mon, May 16, 2011 at 7:14 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>> At Fri, 13 May 2011 17:38:41 -0400, Sam Tobin-Hochstadt wrote:
>>> The `syntax/stx' and `racket/private/stx' libraries contain a bunch of
>>> duplication.  In particular, the following functions seem identical:
>>> `stx-null?' `stx-list?' `stx->list' `stx-pair?' `stx-car' `stx-cdr'.
>>> Is there any reason not to just have `syntax/stx' reprovide them,
>>> instead of defining duplicate versions?
>> Seems fine to me. (Originally, the code in `racket/private/stx' wasn't
>> really accessible from `syntax/stx'.)
> Were they in different programming languages, by chance?

I believe they used to be in `startup.ss', which was in Racket in most
senses.  Although with an interesting implementation ...
sam th
samth at ccs.neu.edu

Posted on the dev mailing list.