Quote:Original post by Tron3k
*** Source Snippet Removed ***
that's pretty gay, don't you think?
You know, I should use that and not do it by hand.
...and they think I'm joking... BWAHA
Quote:Original post by Tron3k
*** Source Snippet Removed ***
that's pretty gay, don't you think?
Quote:Original post by bishop_passThat's a really interesting thought. I guess, for quests I could do something crazy like this:Quote:Original post by Tron3kThen shouldn't you use a language perfectly designed for developing MMORPGs and then use defmacros to turn it into conventional Lisp code? Of course, with defmacros, pretty much anything is Lisp code, however you want it...
I'm going to write my MMORPG in Lisp.
(quest (goals (save princess) (kill enemy-goblin)) (rewards (item sword-of-destruction) (item 200 gold)))
Quote:Original post by bishop_pass
Possible Lisp Workflow...
- Know your domain
- Write a program using an optimal but not yet in existence mini-language that works effectively in your domain
- Use Lisp defmacros to massage your mini-language into actual Lisp statements
Quote:Original post by C-Junkie
Er... Assuming you don't mind the parens, you mean?
((lambda (x) (list x (list (quote quote) x))) (quote (lambda (x) (list x (list (quote quote) x)))))
Quote:Original post by kSquared
My 'cool' Lisp snippet.((lambda (x) (list x (list (quote quote) x))) (quote (lambda (x) (list x (list (quote quote) x)))))
Not particularly exciting, but it's cool IMO. ;)
((lambda (x) (list x (list 'quote x))) '(lambda (x) (list x (list 'quote x))))
So you're calling that first lambda with its own code. That returns a list containing the code of itself, and then the code of itself quoted. In other words, that code evaluates to itself.
Quote:Original post by Tron3k
I'll try to figure this out.Quote:Original post by kSquared
My 'cool' Lisp snippet.((lambda (x) (list x (list (quote quote) x))) (quote (lambda (x) (list x (list (quote quote) x)))))
Not particularly exciting, but it's cool IMO. ;)
That becomes:So you're calling that first lambda with its own code. That returns a list containing the code of itself, and then the code of itself quoted. In other words, that code evaluates to itself.((lambda (x) (list x (list 'quote x))) '(lambda (x) (list x (list 'quote x))))
Quote:Original post by twix1. Is it really that hard to call functions in other languages? I haven't gotten to that yet so I don't know.
As great as Lisp is, it's still not as useful as a lot of other languages for a lot of applications, because it's so hard to get it to work with other languages. It would be nice, for example, to write a game in Lisp using the OGRE engine, but there's no way something like that is gonna happen.
Quote:Original post by bishop_pass
Possible Lisp Workflow...