I don't quite see this as "hacking" anything, but it's a useful thing to know.<p>Along similar lines, I was coding some Ruby and calling a method that took a flag argument. E.g.<p><pre><code> save_something @something, true
</code></pre>
and it bothered my that it was not obvious what that last value was for.<p>I figured that one approach might be to create a throwaway variable and use it in place of the literal:<p><pre><code> overwrite_existing = true
save_something @something, overwrite_existing
</code></pre>
... and then decided to just pass that first expression in as the argument itself to tighten things up:<p><pre><code> save_something @something, overwrite_existing = true
</code></pre>
Basically, a handy (hackish?) way to document any argument.