api-doc-tools icon indicating copy to clipboard operation
api-doc-tools copied to clipboard

F#: units of measure

Open cartermp opened this issue 7 years ago • 2 comments

We'll need a way to show units of measure with mdoc so that we can migrate the FSharp.Core API reference over.

cartermp avatar Jun 22 '18 20:06 cartermp

@cartermp yeah, this came up when we were first developing the F# signatures ... am I incorrect in thinking that the units of measure is entirely a compile-time signifier? If that's the case, then that means the information is not included in the final assemblies from which we generate the documentation updates, right?

joelmartinez avatar Jun 28 '18 18:06 joelmartinez

Yes, they are erased. Example.

Honestly, the only way forward here (from a technical standpoint) seems like it would be to have the tool understand every part of FSharp.Core that defines a unit of measure and then emit the correct signature for each one of those cases.

cartermp avatar Jun 28 '18 18:06 cartermp