在Racket 中,我们会用 struct 做类似的事情。或 struct-property ,虽然没有什么比 defprotocol 在Racket 。 编辑: Racket 现在有generics , 类似于Clojure 协议(protocol) ...
確定! 回上一頁