Non-numerical use cases for functional programming?

前端 未结 18 2228
佛祖请我去吃肉
佛祖请我去吃肉 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 21:50

    The best specific example I can give is StringTemplate, a templating engine used (among many other places) in the ANTLR parser generator.

    In one paper on the design and development of StringTemplate, Terence Parr wrote that he was originally skeptical of functional programming, and so laughed out loud at himself when he realized that StringTemplate was essentially a functional language for generating text.

提交回复
热议问题