Hello,

.NET has a API available in System.Reflection for introspection. It's largely based on the fact that you can call the .GetType() method, and get a System.Type object that describes the type. F# provides it own api build on top of .NET's System.Reflection layer. This abstracts away some of the details of how things like tuples and union types are implemented on top of the CLR. The F#'s api lives in Microsoft.FSharp.Reflection and the documents are available here: [link:research.microsoft.com]

There is no interactive help function, but it would be a nice idea. You could certainly use the reflection layer to roll you own, it's conceptually quite easy but it would take a lot of work to make it really useful.

Cheers,
Rob

By on 8/22/2008 12:49 AM ()

Something like GHCi's :type etc. would be nice, too.

By on 8/22/2008 3:21 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper