Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Clojure and Swing

Name: Anonymous 2010-03-05 1:45

Hey /prog/riders, I'm not a LISPer but I'm learning. I was wondering if it were possible to dynamically create a grid of buttons in swing, instead of initializing all of them individually. I was thinking of making a tic-tac-toe game, but I can't work out how to make it work without making nine specific variable buttons.

Name: Anonymous 2010-03-05 19:21

>>14
Yes, Lisp is excellent in taking concepts from other languages and incorporating it in itself (usually so easy that mere users of the language can do it portably in most cases, and de-facto portable(implementation specific additions across popular lisps) in the few exceptions).

OO wasn't invented in Lisp, even if CL was the first to have it in a standard.

CLOS(+MOP) is still one of the fanciest OO systems I've ever seen(and I'd argue much more flexible than some others), it also came much sooner than so-called 'modern' OO systems.

Lisp didn't invent lexical scoping
Scheme did, and you could say that it's a lisp to some degree.
Lisp also kept dynamic scoping optional which is basically global variables done right.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List