Non-numerical use cases for functional programming?

前端 未结 18 2263
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 21:33

I just finished reading a book on scala. What strikes me is that every single example in the whole book was numerical in some form or another.

Like a lot of programm

18条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 22:06

    These days, I wouldn't even consider writing a DSL lexer/parser in a non-functional language (in broad sense of the term). ADTs and pattern matching make it so much easier.

提交回复
热议问题