On 11-02-2022 15:58, Daniel Sockwell wrote:
The question now is that I can't find anything about COERCE in the
documentation.
Yeah, COERCE definitely should be documented but just hasn't been yet.
There's a raku/doc issue about needing to add it
(https://github.com/Raku/doc/issues/3807)
but unfortunately none of us has done so yet :( That issue does link to a
several blog
posts that explain the new coercion protocol – you might find those useful and
you or
anyone else might also be able to adapt them into a great doc PR.
-codesections
Thanks Daniel and Liz. I can then continue to deprecate quite some
methods in favor of the COERCION methods which in the end will make the
codebase smaller and perhaps reduce the compile time with it.
I will look into issue 3807 to see what needs to be done.
Many thanks,
Marcel