Skip to content

Inlining-based refactorings #353

Open
@jackfirth

Description

@jackfirth

When libraries deprecate functions, those functions can often still be trivially expressed in terms of the library's other public APIs. Migrating users away from those functions is a trivial refactoring: just inline the function everywhere. It should be possible for library owners to declare that Resyntax should inline those functions. For instance, say a library has this code:

(provide foo bar)

;; Deprecated, use bar instead
(define/recommend-inlining (foo x mode)
  (bar x #:mode mode))

(define (bar x #:mode mode)
  ...)

Resyntax should be able to migrate all (foo x mode) expressions to (bar x #:mode mode) automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions