racket/typed-racket

TR should provide a Dictionary type

开放

#31 创建于 2015年2月21日

 (0 条评论) (0 个反应) (0 位负责人)Racket (106 个派生)github user discovery
good first issue

仓库指标

星标
 (576 个星标)
PR 合并指标
 (平均合并 11天 14小时) (30 天内合并 1 个 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.

贡献者指南