Skip to content

prefix-in renaming fails when replacement token is empty [bug, feature request] #137

Open
@mfelleisen

Description

@mfelleisen

Here is the result of renaming the prefix "abc:" to "", the empty string:

#lang racket
(require (prefix-in || "foo.rkt"))
(+ ||xyz (||xyz 10))

I expect to get this:

#lang racket
(require "foo.rkt")
(+ xyz (xyz 10))

When you run search-and-replace in drracket with "abc:" to "" it does that (minus the prefix-in removal).

So it's possible that this is not a bug report but a feature request for "remove prefix-in".

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