This project is read-only.
3

Resolved

Provide method for determining whether two FSharpEntities are identical

description

In trying to build a search facility for the F# libraries in response to a question on StackOverflow (http://stackoverflow.com/questions/2253730/does-f-documentation-have-a-way-to-search-for-functions-by-their-types/2253778) I ran into a an issue with the Metadata library. It seems like there is no easy way to check if two FSharpEntities are the same. For example, the following code returns false
 
let unitName = "Microsoft.FSharp.Core.unit"
let getEntity = FSharpAssembly.FSharpLibrary.GetEntity
(getEntity unitName) = (getEntity unitName)
 
It's possible to hack something together, but without a deep understanding of the internals it's easy to miss odd corner cases (such as the []`1 type). It seems like this would best be handled at the library level.
 
Thanks,
Keith

comments

wrote May 4, 2010 at 1:33 AM

46019

wrote Mar 21, 2011 at 11:23 PM

wrote Oct 31, 2012 at 8:26 PM

wrote Feb 22, 2013 at 12:25 AM

wrote May 16, 2013 at 11:44 AM

wrote May 16, 2013 at 11:44 AM

wrote Jun 14, 2013 at 8:24 AM