Comment on Ask HN: coding challenges as part of interviews: yes or no?parentComments−jcromartie18yI think switch is a particularly bad example here. Honestly, I can't (accurately) tell you the last time I used one. It's not an every-day construct for a lot of people.−eru18yNeither Python nor Haskell have it - as far as I know. Perhaps you can create one out of monads though.−lsb18yActually, case is built into Haskell: it's the evaluation primitive in Haskell Core; see Don Stewart's blog post http://cgi.cse.unsw.edu.au/~dons/blog/2008/05/16 .−eru18yYes, there it is. Sorry, I did not research my claim.Actually pattern matching can also be described as something like a case-switch.
Comments
I think switch is a particularly bad example here. Honestly, I can't (accurately) tell you the last time I used one. It's not an every-day construct for a lot of people.
Neither Python nor Haskell have it - as far as I know. Perhaps you can create one out of monads though.
Actually, case is built into Haskell: it's the evaluation primitive in Haskell Core; see Don Stewart's blog post http://cgi.cse.unsw.edu.au/~dons/blog/2008/05/16 .
Yes, there it is. Sorry, I did not research my claim.
Actually pattern matching can also be described as something like a case-switch.