-
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
May aswell define ==
and hash
along with show
#1
Comments
Why? My reasoning for defining using QuickTypes
@qtype Foo(x; y=10, _define_show=false)
Foo(3)
> Foo(3, 10) and typing |
Well with immutable types |
Sorry, I don't understand. |
Yea I mean when users define |
Isn't that what Julia does already? immutable Foo
x
y
end
Foo(Foo(2,3), 4) == Foo(Foo(2,3), 4) # true What's the difference with your macro? |
That works because it's a bits type. If you throw a string in there it will
|
Right. I agree with you that Both of your issues would be better addressed in Base, especially since 0.6 is going to be released in just two months. Or you could write a |
@jkroso Just stumbled on the relevant Julia issue |
I've changed my mind; it would be a nice contribution to this package, as long as the behaviour is optional. Perhaps @qstruct Foo(a, b)
@recursive_identity Foo ? It can expand into your |
No description provided.
The text was updated successfully, but these errors were encountered: