Conditional Hash Initialization Style
We all run into situations where we want to initialize a hash, conditionally set some values, and then return it. I’ve often struggled to find a style that I’m fully satisfied with.
Consider the following:
I would much prefer to express that like this:
Thoughts? What would you prefer?