On Fri, Aug 23, 2013 at 8:30 PM, Sebastian Sylvan
<[email protected]> wrote:
> I'm sure you've all seen it, but C# has something similar but a lot more
> powerful. Basically, it has support for allowing runtime resolution of types
> if they are declared as having the "dynamic" type. But it's even better, the
> specification for how that resolution happens is defined in a library. This
> way you can work directly with dynamic values without having to cast them
> first (e.g. imagine just "dotting your way" through a JSON document and
> parse it on-demand).

A more recent approach to this kind of thing is F# type providers
(http://msdn.microsoft.com/en-us/library/hh156509.aspx and, for
instance, http://fsharp.github.io/FSharp.Data/library/JsonProvider.html).
 Although I'm not especially familiar with them, they seem relevant
and interesting.

Lindsey
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to