Saved Bookmarks
| 1. |
Explain What Is The Difference Between “data” And “new Type” In Haskell? |
|
Answer» NEWTYPE: It guarantees that your data will have EXACTLY the same representation at runtime, like the type that you wrap Data: It declares a brand new data STRUCTURE at runtime Newtype: It guarantees that your data will have exactly the same representation at runtime, like the type that you wrap Data: It declares a brand new data structure at runtime |
|