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
{{ message }}
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
Ideally this would also work with immutables in the following way:
a =@NT(somename =>34)
x =@NT(a.somename)
and then x would have one member with name somename. In cases where no name can be inferred it could assign automatic names:
x =@NT(x^2)
would assign an automatic name to its one member.
This syntax would obviously break the current syntax for defining NamedTuples... But maybe that could just get its own macro, e.g. @DNT or something like that?
The text was updated successfully, but these errors were encountered:
Yep, essentially just the way C# handles this for their anonymous types.
If you are ok with this, I can prep a PR. I have implemented something like this already in Query.jl, so it would just be a matter of taking my code from there and moving it into the package here, I believe.
It would be great if the following syntax
would be equivalent to
Ideally this would also work with immutables in the following way:
and then
x
would have one member with namesomename
. In cases where no name can be inferred it could assign automatic names:would assign an automatic name to its one member.
This syntax would obviously break the current syntax for defining NamedTuples... But maybe that could just get its own macro, e.g.
@DNT
or something like that?The text was updated successfully, but these errors were encountered: