| ||Ask YC: Game programming in Lisp - is it possible?|
37 points by gameprogrdr on Mar 15, 2009 | hide | past | web | favorite | 40 comments |
I have been programming small games in Java for the past 3 years or so and would like to expand my horizons by learning functional programming.
Is it possible to make games using something like Lisp (or another functional language)? Would there be any benefits as opposed to OOP?
For instance: say I want to make a pacman game. In java, you just have a bunch of objects that keep their state and thus globally keep the state of the game. Then you check for collisions etc. But in Lisp, you don't have state - so would that be possible to make pacman purely functionally? If so, how? And would there be any benefits?
| Apply to YC