Functional Programming in C++

后端 未结 6 453
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 10:41

Can someone guide me how do functional programming in C++? Is there some good online material that I can refer?

Please note that I know about the library FC++. I want to

6条回答
  •  隐瞒了意图╮
    2021-01-30 10:48

    I don't think that you can't to true, real, functional programming in C++; but it's certainly not the easiest or natural way to use it. Also, you might just use a couple of functional-like idioms and not the whole mindset (i.e. 'fluent style')

    My advise would be to learn a functional language, maybe start with Scheme, then move to Haskell. Then use what you've learned when programming in C++. maybe you won't use an obvious functional style; but you might get the biggest advantages (i.e. using immutable structures).

提交回复
热议问题