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
In imperative programming you can stop iteration by using break or return keywords, but in Nevalang's dataflow it's not possible - for, map, filter, etc will process the whole stream even if its infinite. How do we solve this problem?
Make existing iterators send -> :err to signal stop? Is it popular usecase enough to make using more complicated (in theory you could just not write to :err outport)
Introduce other components for this usecase (e.g. While)?
The text was updated successfully, but these errors were encountered:
In Go you if err != nil and return err inside for loop, in Nevalang you can't do anything if inside handler of your for/map/flter/etc you got :err from somewhere. You basically can't use ? operator too
In imperative programming you can stop iteration by using
break
orreturn
keywords, but in Nevalang's dataflow it's not possible -for
,map
,filter
, etc will process the whole stream even if its infinite. How do we solve this problem?-> :err
to signal stop? Is it popular usecase enough to make using more complicated (in theory you could just not write to:err
outport)While
)?The text was updated successfully, but these errors were encountered: