Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The worst thing is debugging OO code written by somebody newly infatuated with Haskell. (I learned my lesson.)


In what way?

(I am glad to say that I have not yet written "class Foo does Monad, Functor {}" ;)


It's likely to go against the flow of the language. While I don't agree with all the design trade-offs in Python, there's a lot to be said for having a clear idea of what style(s) fit the language (what's "Pythonic") and sticking with it. Python code stubbornly written as if it were Haskell is often inefficient and hard to read. Writing idiomatic code that works with the strengths of the language at hand is a better idea. When/if somebody else works with your code, it's unlikely they will have exactly the same background as you, though they will probably know the language you wrote the project in.

(I'm assuming it's not in a language like OCaml or Oz that can comfortably fit both styles.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: