-
Notifications
You must be signed in to change notification settings - Fork 17
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
On :print-limits
session action and REPL state
#17
Comments
:print-limits
session actions and REPL state:print-limits
session action and REPL state
Not addressing all points but:
So you can know the current values and you can also set only some values |
Right I missed that, although I think that isn't enough.. with that approach, you can't set values to nil ever. A bit worse than that, in the current print-limits setup, both This is my current solution to address temporary print limits binding: volrath/spiral@6391f99, I'm not in love with it, but it does the trick and it might be good enough for the problem. |
Setting both to a high value (e.g. The value you observe for |
huh, I thought It was weird that *print-level* was This is what I get back from a first update:
|
From slack:
|
We just ran into this, as we assumed all |
There are two common scenarios in which a client might want to edit print limits (a.k.a. modify REPL state):
In any of those circumstances, the client might want to edit just one, or several, state variables.
Current implementation's pain-points:
*print-level*
, it has to call the:print-limits
action with all the other bindings. Furthermore, the client has no way to know what are those values the first time.Proposal:
Improve api to handle REPL state variables by:
:unrepl/hello
.:print-limits
action for a more flexible version of it that can change a subset of variables at a time. Maybe also rename it to something more generic, in case more variables are added in the future.--
Also, an idea I would like to bounce here: what about adding a function that handles one-offs state modifications internally, something like:
This would mean improving
(ensure-ns)
to recursively search for fully qualified 'function' symbols and requiring them, and to have another variable in the REPL's state that tracks reverting the binding.--
If accepted, I could code the result of this conversation.
The text was updated successfully, but these errors were encountered: