Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samungo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
samungo
11y ago
Yes that would be a bad way to do structs in Haskell. Instead you would simply use Haskell's record syntax, ie. data Person = Person { firstName :: String, lastName :: String, age :: Int } You could also easily define more specific typ
2.
▲
by
samungo
11y ago
I have seen this "type errors are infrequent" argument many times and I think it stems from a confusion about what a type error is. Many programmers who are only used to dynamic languages think it means something like the followin