| ||Ask YC: Game programming in Lisp - is it possible?|
37 points by gameprogrdr 3026 days ago | hide | past | web | 40 comments | favorite |
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