#Typing sendParent
1 messages · Page 1 of 1 (latest)
Right now, it's not possible to know the type of the parent, since a machine can be spawned from pretty much any machine
But yes, in v5, @main sandal and I were talking about ways to type an "actor behavior" (e.g. machine) as "I can only be spawned by parent(s) that extend this type"
Right now u would have to wrap sendParent with your own types to its arguments, that wouldnt exactly make your parent-child communication completely safe but it could spare u some typos and errors
Awesome, thanks!