Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement #lang with application form #2

Open
pdarragh opened this issue Nov 30, 2020 · 2 comments
Open

Implement #lang with application form #2

pdarragh opened this issue Nov 30, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@pdarragh
Copy link
Owner

It'd be fun to make #lang lambda-vc where the #%app form is overridden so users do not need to use interp or quotation.

@pdarragh pdarragh added the enhancement New feature or request label Nov 30, 2020
@pdarragh pdarragh changed the title Implement #%app Implement #lang with application form Nov 30, 2020
@sorawee
Copy link

sorawee commented Nov 30, 2020

Overriding #%app doesn't need a new #lang FWIW.

#lang racket

(module foo racket
  (provide (rename-out [app #%app]))
  (define-syntax-rule (app xs ...)
    (#%app xs ... 42)))

(require 'foo)

(+ 1 2 3) ; 48

@pdarragh
Copy link
Owner Author

Oh! Yes, it isn't necessary but I think I would like to maintain the more manual interp form when just doing (require lambda-vc) and leave a #%app override for #lang lambda-vc for clarity of intent. But you've certainly given me something to get started with, so maybe this week I'll implement this. Thank you for the interest!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants