From: Ken Bloom Date: 2006-12-06T10:45:06+09:00 Subject: Re: Lisp comprehensions => SQL On Wed, 06 Dec 2006 07:58:56 +0900, David Vallner wrote: > Victor "Zverok" Shepelev wrote: >> Hi all. >> >> Random idea, just for fun - using "list comprehensions" for SQL queries >> generation. >> >> [SNIP] >> >> But the realization of above seems to be interesting task (for RubyQuiz, may >> be?) >> > > Well, to work with blocks, you'd need to involve ParseTree or something > like that, unless you're willing to offload some of the logic back to > the interpreter (gruesomely laggy). That might be a little out of scope > for a RubyQuiz. Then again, having seen some of the more golfy / > braintwisting solutions to some problems, maybe not :) It already was a ruby quiz. Or at least something close enough to it was. See Ruby Quiz #95 and its solutions. --Ken Bloom -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/