「SF-PLF」14 RecordSub

2022-03-02 17:41:55 浏览数 (1)

代码语言:javascript复制
Inductive ty : Type :=
  (* record types *)
  | RNil : ty
  | RCons : string → ty → ty → ty.

we need typecon to identify record…

`coq Inductive tm : Type := | rproj ...? isn't it as well? (* record terms *) | rnil : tm | rcons : string → tm → tm → tm.

as a list…

for Record, can compiler reorder the fields? (SML and OCaml)

0 人点赞