From: gandy@... (Thomas Gandy) Date: 2001-11-04T05:50:40+09:00 Subject: [ruby-talk:24289] Re: Too much eval evil? (tell me why I shouldn't do this) ptkwt@shell1.aracnet.com (Phil Tomson) wrote in message news:<5NME7.94027$HZ.3182637@sjcpnn01.usenetserver.com>... > In article <2334FC218D0FD6499D8B685EB518AED81FDD59@us-exchange.mosaicsoftware.net>, > > I like Ryan's solution better than the one proposed by Thomas (it seems a > lot cleaner), but I can see that Thomas' solution has an advantage: What > if one were using some > kind of templating system where you have a file which contains embedded > Ruby code (like the one I proposed a few days back), then you actually > need to have the names of the variables produced in the cartesian > product code match the names of the variables in the template file - it > looks like the original solution could do that. exactly. If I was passing in a list of strings which had ruby variables to be interpolated then I need to have the variable names available. -gandy