Does haskell erase types?

后端 未结 2 1048
自闭症患者
自闭症患者 2020-12-28 15:58

Does Haskell erase types, and if so, in what ways is this similar/dissimilar to the type erasure that occurs in Java?

2条回答
  •  心在旅途
    2020-12-28 16:45

    C and Pascal have type erasure. Java lets you inspect classes at run-time - even dynamically loaded ones!

    What Haskell does is much closer to Pascal than to Java.

提交回复
热议问题