-
Notifications
You must be signed in to change notification settings - Fork 6
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
repl can't provide a value back to Rib.anchor caller. #9
Comments
It seems not very easy to implement this in rib without adding a rib Is there a real world scenario which really needs this functionality? |
irb provides 'exit' through a module that is mixed into the I don't have a good use-case in my mind, but i think pry used that feature to support runtime development. the idea is/was you could pass a value back to the calling scope. |
Umm... indeed. I guess that's probably not a very good idea when we In my mind, an interactive shell is more a place for inspecting and (Try to store the value somewhere and retrieve it after exiting the Oh, or I could provide something like |
|
I guess I'll leave it as it is for now until there's a good use case, That means, |
in a similar way, yeah. commands are mapped to a Proc/method by reading through user input and mapping |
My concern regarding a command system is that it's a separate system, So I still hesitate to add it. |
yeah, something like pry's command system isn't easy to get right and cover the edge cases. |
:) |
will do. so far i've only come across |
scroll to "rib":
https://github.com/robgleeson/binding.repl/blob/master/doc/exit_values.md
it's a feature pry and IRB support but rib and ripl don't appear to. imagine a scenario like:
The text was updated successfully, but these errors were encountered: