fsharp / fsharp/fsharp-core-docs

Include type constraints in documentation

Abierto
#65 5 comentarios 0 reacciones 0 asignados Ver en GitHub
fsdocs
Lenguaje dominante
Sin datos de lenguaje
Estrellas
37
Forks
20
Merge medio
6 min
PR fusionados (30 d)
1

Descripción

The [documentation for `hash`](https://fsharp.github.io/fsharp-core-docs/reference/fsharp-core-operators.html#hash) does not say that it requires the `equality` constraint on its only type parameter. Another example is the [documentation for `compare`](https://fsharp.github.io/fsharp-core-docs/reference/fsharp-core-operators.html#compare). It requires the `comparison` type constraint on its only type parameter. For convenience, here is the [list of all type constraints](https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/generics/constraints).

Could type constraints be added to the documentation for types that have them?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.