Open emil14 opened 3 weeks ago
Simplest solution is to check that all port-addresses that we use are (in this case) data
, idx
and last
.
The power of for-loop construct in C-like languages comes with being able to access outside scope and early termination with break
, both of these features are not implemented in this. This is more problem of #687 issue but not having closures might be confusing
Could ForEach
(or it's alternative?) be implemented not as a HOC?
might be related to #627
Related to #724
There're (probably) no problems with things like ternary/binary/cond/if-else/etc - components that we wanna support at syntax level, that are NOT implemented as HOCs.
On the other hands there are things like For(Each), etc. They have dependencies. Let's imagine this kind of syntax for #687
For(Each)
is a component that takes dependency and DI in Nevalang is not inline (see #720 for details). This mean that we don't have closures. In other words we can't access:bar
from insidefor
loop here. Same goes for switch, match, etc. All syntax features that implemented as HOCs under the hood.