What are the problems with an ADT encoding that associates types with data constructors? (Such as Scala.)

后端 未结 0 1346
你的背包
你的背包 2020-12-22 21:42

In Scala, algebraic data types are encoded as sealed one-level type hierarchies. Example:

-- Haskell
data         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题