racket/typed-racket

TR should provide a Dictionary type

オープン

#31 opened on 2015/02/21

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Racket (106 件のフォーク)github user discovery
good first issue

Repository metrics

Stars
 (576 個のスター)
PR merge metrics
 (平均マージ 11d 14h) (30d で 1 merged PR)

説明

It would be nice if TR provided a built-in Dictionary type. At its simplest, it would just be (U (HashTable a b) (Listof (Pairof a b)), but vectors are also technically dictionaries.

Does TR's type system allow "specializations" of types? I.e. some way to define a special case for (Dictionary Integer b) that includes vectors?

Technically, dictionaries also include structures that implement gen:dict, but obviously generics don't exist in TR yet.

コントリビューターガイド