Wednesday, May 16, 2007

Handling Forward Reference in Ruby

While doing some DSL work, I found myself with forward referencing problems. I needed to be able to create structures that used information that wasn't yet available. I took a step back and designed a forward reference capture and resolution framework that let me keep my DSL work clean and didn't choke when things are used before they're defined.

I wrote a description of the system and uploaded the code to rubyforge as part of the 0.1.1 release of my eymiha_util rubygem - you can get the paper or download the system from my "chunks of ruby infrastructure" project.

No comments: