fsharp / fsharp/fsharp-core-docs

Include type constraints in documentation

オープン
#65 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
fsdocs
主要言語
言語のデータがありません
スター
37
フォーク
20
平均マージ
6分
マージ済み PR(30日)
1

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。