Skip to content

Interposition macros trick "add require prefix" #829

Open

Description

@shhyou

Interposition macros like #%app, #%top, #%datum/quote would trick the "add require prefix" tool. For example, adding the require prefix isl: to add1 in this program

#lang racket/base
(require lang/htdp-intermediate)
(add1 789)

produces

#lang racket/base
(isl:require (prefix-in isl: lang/htdp-intermediate))
isl:(isl:add1 isl:789)

Except for isl:require, the isl:(...) and isl:789 expressions are entertaining but probably unexpected.

There are indeed some library uses of #%app and #%top like Fancy App, xsmith/app, and c(a|d)^nr.

Activity

  1. added
    check-syntaxissues related to check-syntax, background expansion, drawing nifty arrows, etc.
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    check-syntaxissues related to check-syntax, background expansion, drawing nifty arrows, etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions