In clarifying and correcting my example I found the issue. I was storing a
lambda deep inside some data structure and later updating the lambda code
to catch exceptions but an effectively cached lambda in my session wasn't
updated to the changed one (the evils of state..). A fresh session where
doh. that's a badly translated example by me. I'll have another go at
translating the actual code that isn't completely broken like attempt 1.
On Sunday, March 30, 2014 2:24:38 PM UTC+1, Michał Marczyk wrote:
>
> The problem is that inner-lazy is a method of AProto which is
> implemented for ARe
The problem is that inner-lazy is a method of AProto which is
implemented for ARecord, but actually called (in trigger-fn) on a
vector of two ARecords. The exception thrown is an
IllegalArgumentException complaining about the missing method.
inner-lazy2 works, because it's just a regular function.
I'm trying to work out how to catch exceptions close to source in some code
with structure similar to this:
https://www.refheap.com/68851
A doall on line 13 doesn't change the outcome.
So not involving records and protocol a similar structure does what I
expect it to do, but with them I seem un