-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type signatures #22
Comments
Yes, absolutely. Good point. |
Simply delete the type signatures, and duck type on anything but |
#20 does switch it to |
I don't need a Set very much - that's just the type I naturally had in my code when I ran into this. |
I'm just not a massive fan of duck typing, partly unfairly because the languages where I've used it tend to be so poorly designed (though I appreciate that's not the case here), but also because the errors when you misjudge the (now hidden) type requirements are that much more obscure as they are buried in some subsidiary function call. I'm not implacably opposed to it though - I'll sort it out. |
Hi, the
droptips
function appears to have the signaturedroptips!(t::T, tips::Vector{NL}) where {NL, BL, T <: AbstractTree{NL, BL}}
. But couldn'ttips
be anyAbstractVector{NL}
, or be aSet{NL}
? Or a generator or an Iterator or anything else that yields something that can be interpreted as aNode
?The text was updated successfully, but these errors were encountered: