You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a particular instance of the fact that rust doesn't support recursive structural types (it's not really specific to objects). replacing objects with pcwalton-style classes/interfaces (which are nominally typed) would address this problem.
It's a bit obnoxious when writing an object type that can return instances of itself that we need a tag to break up the recursion:
It'd be much nicer if rust would just let us write
fn get_children() -> [foo]
.The text was updated successfully, but these errors were encountered: