Use of Haskell state monad a code smell?

前端 未结 8 2107
悲哀的现实
悲哀的现实 2020-12-22 19:56

God I hate the term \"code smell\", but I can\'t think of anything more accurate.

I\'m designing a high-level language & compiler to Whitespace in my spare time

8条回答
  •  清歌不尽
    2020-12-22 20:42

    Well, don't use monads. The power of functional programming is function purity and their reuse. There's this paper a professor of mine once wrote and he's one of the guys who helped build Haskell.

    The paper is called "Why functional programming matters", I suggest you read through it. It's a good read.

提交回复
热议问题