It's strange to find out that in k2.8 and k3.2 closures are limited to
two levels in being 'proper', i.e. keeping the information about the
enclosing state. Would be interesting to know what does Mr. Whitney
think about that, and if there are any justifications to such
behavior.
If the goal is to keep Kona as compatible as possible to k3, it might
be reasonable to reproduce the way k3 deals with closures. On the
other hand, the correctly implemented closures have their own
benefits, of which the most important is not burdening the programmer
with the necessity to reason how the variables get discarded on
different levels of nesting.
Regarding compatibility, it is possible that nobody encountered this
situation while using k3, it might be never reported and addressed, so
implementing the closures properly might not affect currently existing
programs.
I am only a beginner in K, learning by myself, not having enough
examples of code, so I may as well use atrociously wrong style that
nobody writes K in, so maybe these nested closures do not really
matter for anybody.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kona Developers" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/kona-dev/TayM2rh8k2w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
kona-dev+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.