J
Joel VanderWerf
Mark said:This is a neat idea, but wouldn't it conflict with the "fluent
interface" construct? Using Joel's DSL example:
config "my window" do
.width @x
.height @y
end
if we changed it to
config "my window" do
.width calculate_width
.height @y
end
Now how does the parser know what .height refers to: calculate_width,
or the implicit block variable?
Yeah, seems impossible. Maybe if there were some other character instead
of "." to signify sending a message to the block's "default object".