How does functional programming apply to simulations?

后端 未结 6 456
情深已故
情深已故 2021-01-31 05:11

Besides the general question in the title,

  • How do functional programmers and functional languages approach the domain of simulations, which seem to be most natural
6条回答
  •  长情又很酷
    2021-01-31 06:02

    Simulations are a form of interpreter -- which are easy to write in a functional style. They can be also designed as self-optimizing simulators, based on treating them as a compiler.

提交回复
热议问题