W44
2026年 第44週
15件のProposal更新
対象期間: 10/15〜10/28
#69559likely_accept
golang.org/x/exp/collection/hashed: Map, a generic hash table with custom hash function and equivalence relation
golang.org/x/exp/collection/hashed パッケージに、汎用のハッシュテーブル型 Map[K, V] を追加する提案です。組み込みの map はキーを == でしか比較できませんが、Map ではハッシュ関数とキーの同値関係(どのキー同士を「同じ」とみなすか)を利用者が指定できます。
active likely_accept
詳細を見る #80584likely_accept
golang.org/x/exp/collection/hashed: Set, a set based on a hash table that uses the element type's custom hash function and equivalence relation
キーの比較方法を利用者が決められるハッシュテーブル型の集合 Set[E] を、新しいパッケージ golang.org/x/exp/collection/hashed に追加する提案です。要素の型が == で比較できない場合や、== とは違う「同じとみなす基準」を使いたい場合に使います。
active likely_accept
詳細を見る #80590likely_accept
container/...: generic collection types
Go 1.18 のジェネリクスと Go 1.23 のイテレータを前提に、集合(Set)、順序付きマップ、カスタムハッシュを使うマップ、ヒープなどのコレクション型をまとめて追加するための「傘(umbrella)proposal」です。Go Collections ワーキンググループ(@jba, @adonovan, @griesemer, @mvdan, @rogpeppe, @khr, @ianlancetaylor)が提出しました。最初の置き場所は標準ライブラリではなく golang.org/x/exp/collection/... です。
active likely_accept
詳細を見る