Re: Avoiding monkey typing for custom roles on built-in types...

2020-08-09 Thread Ralph Mellor
> Would a better approach be to create custom subtypes of the built-in numeric types that mixin the algebraic roles? It could maybe work out better to mix roles into numeric instances: role G { has Numeric $numeric handles *; has ThreeDObject[:Rotation] $threedobject-rotation handles *; met

Re: SF Perl's Raku Study Group

2020-08-09 Thread Joseph Brenner
Sorry, that's the wrong meetup link (not that it matters that much): https://www.meetup.com/San-Francisco-Perl/events/272454065/ The zoom link is correct, though: https://us04web.zoom.us/j/72909473784?pwd=YTd1ZnlWTFV3ckZMWmtRcXdPK2loZz09 Passcode: 4RakuRoll Unless someone brings up another su

Re: Avoiding monkey typing for custom roles on built-in types...

2020-08-09 Thread yary
I only superficially read this question–but it does make me think of coercing input types https://docs.raku.org/language/functions.html#Coercion_types https://stackoverflow.com/questions/34874779/what-is-the-point-of-coercions-like-intcool If the methods that do the adding-of-magmas were written