How can you do anything useful without mutable state?

后端 未结 18 1756
栀梦
栀梦 2020-11-28 17:12

I\'ve been reading a lot of stuff about functional programming lately, and I can understand most of it, but the one thing I just can\'t wrap my head around is stateless codi

18条回答
  •  抹茶落季
    2020-11-28 17:36

    Using some creativity and pattern matching, stateless games have been created:

    • CSSPlay: Maze Game
    • CSSPlay: Maze Game 2
    • CSSPlay: Tic-Tac-Toe
    • Pure CSS Tic-Tac-Toe
    • CSSPlay: Pong
    • CSSPlay: Ping-Pong
    • CSSPlay: Cops and Robbers
    • CSSPlay: Whack-a-Rat
    • CSS3 Pong: Insane Things to do with CSS

    as well as rolling demos:

    • CSSPlay: Random Heroes
    • Animated Analog SVG Clock
    • Animated SVG Pendulum
    • Animated SVG Racers
    • CSS3: Making Snow

    and visualizations:

    • XSLT Mandlebrot

提交回复
热议问题