|
|
|
|
|
by hota_mazi
3296 days ago
|
|
Wow, I didn't realize that record field names have to be unique in Haskell. The following: data Human = Human {name :: String}
data Dog = Dog {name :: String}
is illegal, because they can't both have a field accessor called `name`.That's... crazy. |
|
Pragmatically, it's really annoying. There's a solution in the space between pure (a la Haskell) and magical (a la Scala) that makes sense. I think Idris might have found it.