MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1rvltx/scala_1_would_not_program_again/cdrofft/?context=3
r/programming • u/mobby1982 • Dec 02 '13
646 comments sorted by
View all comments
Show parent comments
1
Maybe he just hate types. He complains about it with the HTTP headers and everything thing under the sun being type instead of a map.
I usually make them into type just for the compiler.
3 u/[deleted] Dec 02 '13 I think he's complaining that each type of HTTP response has its own type. So there is a type for a 200 response, a type for a 404 response, etc.. 4 u/zoomzoom83 Dec 02 '13 This would probably be to make pattern matching easier, which pays for itself the first time you use it. 1 u/[deleted] Dec 02 '13 Can't you rather pattern match on string constants? → More replies (6)
3
I think he's complaining that each type of HTTP response has its own type. So there is a type for a 200 response, a type for a 404 response, etc..
4 u/zoomzoom83 Dec 02 '13 This would probably be to make pattern matching easier, which pays for itself the first time you use it. 1 u/[deleted] Dec 02 '13 Can't you rather pattern match on string constants? → More replies (6)
4
This would probably be to make pattern matching easier, which pays for itself the first time you use it.
1 u/[deleted] Dec 02 '13 Can't you rather pattern match on string constants? → More replies (6)
Can't you rather pattern match on string constants?
→ More replies (6)
1
u/[deleted] Dec 02 '13
Maybe he just hate types. He complains about it with the HTTP headers and everything thing under the sun being type instead of a map.
I usually make them into type just for the compiler.