Hi Arne, > Sorry for the late reply. The path I took for define-typed (with > exceptions thrown) offers the same performance improvements as > handwritted guards following > <https://dthompson.us/posts/optimizing-guile-scheme.html>. > > So if you didn’t do it already by now, you might be able to borrow code > from the implementation of define-typed (you have my OK for that, also > to use the license needed for a SRFI): > > https://www.draketo.de/software/guile-define-typed > > There’s also a simple benchmark included to check whether the > performance holds up to optimizing with guards by hand.
I’ll check it out, thank you! Best of love, -- Artyom Bologov https://aartaka.me
