The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by michael warren:
Ilja, thanks for your reply - its probably better than what we've got now, but if I've understood you correctly I think that would still leave the user of the data responsible for calling a method to free up resources.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Frank Carver:
I have encountered problems like this often enough that I now prefer to use an "inverted" approach.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Stan James:
Was that what you were picturing?
Originally posted by Frank Carver:
In the JDBC case, I would want the internal iterator to pass in something like a ResultSet. In the tree walk example, I'd expect a TreeNode of some sort, and so on.
Sure, you could pass in a raw Object, but that would require a cast in every case, which feels uncomfortable.
Thoughts?
Peer: Is awareness of this pattern being raised because of Ruby's process blocks?
Possibly. I know that playing with Ruby helped me crystalize what I wanted my JDBC stuff to feel like.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
What has been inverted is control.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Ilja Preuss:
This Internal Iterator stuff actually is quite popular in Smalltalk - from which Ruby copied a lot of basic concepts, as far as I can tell.
Yup, yup, yup. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|