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

Allow to evaluate an expression in printer #130

Open
mrkam2 opened this issue Jan 25, 2024 · 1 comment
Open

Allow to evaluate an expression in printer #130

mrkam2 opened this issue Jan 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mrkam2
Copy link

mrkam2 commented Jan 25, 2024

It would be great if I was possible to evaluate and print a custom expression using the data available in a printer position. So the following two scenarios are possible:

  • Evaluate an expression over several values in a given point of the code. Such as (+ a b).
  • Modify the expression returned by a given form. For example, (select-keys % [:a :b]).

Slack: https://clojurians.slack.com/archives/C03KZ3XT0CF/p1706144050247019

@jpmonettas jpmonettas added the enhancement New feature or request label Jan 26, 2024
@jpmonettas
Copy link
Member

jpmonettas commented Jan 26, 2024

I think this is a nice thing to have.

Evaluate an expression over several values in a given point of the code. Such as (+ a b).

this is tricky to implement if possible at all.

Modify the expression returned by a given form. For example, (select-keys % [:a :b])

☝🏼 this one is imo the way to go

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