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 setref #586

Closed
andychu opened this issue Jan 22, 2020 · 5 comments
Closed

Implement setref #586

andychu opened this issue Jan 22, 2020 · 5 comments

Comments

@andychu
Copy link
Contributor

andychu commented Jan 22, 2020

Strictly speaking this doesn't need to make the 2020 cut, but it's a better version of bash's named references.

Need to decide on the declaration syntax:

proc p (s, :out) {
}

 or

proc p (s, out Ref) {
}

There is a similar issue iwth blocks

proc p (&b) {
}

or

proc p (b Block) {
}
@andychu
Copy link
Contributor Author

andychu commented Feb 19, 2020

This can build on the work in #600

@andychu
Copy link
Contributor Author

andychu commented Mar 7, 2020

Probably essential for a better completion API, a better prompt hook, and a better $PS4, etc.

@andychu
Copy link
Contributor Author

andychu commented Oct 10, 2020

The thing that would make this not essential is if we have an optimized command sub: #799

So then we can "return" values from procs in a different way

@andychu
Copy link
Contributor Author

andychu commented May 14, 2021

Fully done 0.8.11 with http://www.oilshell.org/release/latest/doc/variables.html

@andychu
Copy link
Contributor Author

andychu commented Jul 7, 2021

@andychu andychu closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant