You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering whether IO ports should be first class, so they could be assigned to variables, passed to functions, etc.
My use-case motivating this is processing stream input, where there is a header to be processed first. So I envisage being able to do from-lines | take 1 for the header, but still subsequently have access to the IO port to read the rest of the stream.
I haven't thought at all about syntax yet, it's the concept I would first like to understand.
What new feature should Elvish have?
I am wondering whether IO ports should be first class, so they could be assigned to variables, passed to functions, etc.
My use-case motivating this is processing stream input, where there is a header to be processed first. So I envisage being able to do
from-lines | take 1
for the header, but still subsequently have access to the IO port to read the rest of the stream.I haven't thought at all about syntax yet, it's the concept I would first like to understand.
This would seem to be an answer also for #741
Thoughts?
Output of "elvish -version"
0.21.0
Code of Conduct
The text was updated successfully, but these errors were encountered: