Re: try catch leaking exception

2018-02-15 Thread icamts
Thanks for the advice. I will keep it in mind. Luca Il giorno mercoledì 14 febbraio 2018 20:05:32 UTC+1, Erik Assum ha scritto: > > There is also https://github.com/magnars/realize/blob/master/README.md which > helps with this problem. > > Erik. > -- > i farta > > 14. feb. 2018 kl. 12:20 skr

Re: try catch leaking exception

2018-02-14 Thread Erik Assum
There is also https://github.com/magnars/realize/blob/master/README.md which helps with this problem. Erik. -- i farta > 14. feb. 2018 kl. 12:20 skrev Thomas Heller : > > lazy-seq is the short answer. > > You are constructing the seq inside the try/catch but it is realized outside > of tha

Re: try catch leaking exception

2018-02-14 Thread icamts
Thanks a lot. I was far from it and now I'm grateful for this new insight. We never stop learning. Cheers, Luca On Wednesday, February 14, 2018 at 12:20:20 PM UTC+1, Thomas Heller wrote: > > lazy-seq is the short answer. > > You are constructing the seq inside the try/catch but it is realized >

Re: try catch leaking exception

2018-02-14 Thread Thomas Heller
lazy-seq is the short answer. You are constructing the seq inside the try/catch but it is realized outside of that so no exceptions will be caught. (defn gen-ym-list [from to] (try (->> (p/periodic-seq (f/parse ym-fmt from) (t/months 1)) (take-while #(not (t/after? % (f/parse ym-f