[nem-en] Named tuples.
Kamil Skalski
kamil.skalski at gmail.com
Sun Mar 25 13:05:00 CEST 2007
There is no special support for such thing in CLR, so you would need
to implement its features on your own. Probably the most desired one
would be to maintain a form of interoperability between functions /
classes using named tuples in their signatures:
f (x : (bar :int) * (foo : string)) : void { ... }
g () : (bar :int) * (foo : string) { ... }
f (g())
This would be problematic between different assemblies, so it would
need to be workarounded on the "project" level, like having a single
assembly, where all needed named tuples would be generated and then
other assemblies could use the ready ones.
Otherwise you would need to go into dynamic access to fields /
properties and just pass "object" everywhere.
2007/3/25, Ivan A Eryshov <ivan.eryshov at gmail.com>:
>
>
>
>
> Kamil, Michal,
>
>
>
> I have a theoretical question. Is it possible to implement named tuples with
> current version of CLR?
>
>
>
> --
>
> Regards, Ivan Eryshov.
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list