-
Notifications
You must be signed in to change notification settings - Fork 11
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
when defineing an optional arg it should define that field to be the same type as the default value #2
Comments
That was a conscious decision, because it allows for |
I'm not sure I follow. But I agree that |
Oh! I'm sorry; I misread your suggestion. Ignore what I said above. That's an interesting proposal, but it would be unexpected behaviour for most users. Consider quote
type Window
color
button::Void
end
end which is obviously not useful. |
And that brings up another case type Window
color::Any
Button::Nullable
end
Window(color)=Window(color,nothing) ie. |
See #1 |
Eg:
Becomes
The text was updated successfully, but these errors were encountered: