|
|
|
|
|
by wnight
5460 days ago
|
|
Not to golf your code or anything, but that's around the point where I switched to Ruby. It's almost a drop-in replacement, you can be coding in minutes with all the handy shortcuts non-PERL coders don't know they're missing. name = args[:form_name].respond_to?(:call) ? args[:form_name].call(user_options) : args[:form_name] Fewer sigils, no array/scalar access nonsense, real and convenient objects, etc. |
|
As with PHP, reusing the same sigil for everything misses the point of sigils rather badly. I count five instances of two sigils in your example and each sigil character has another syntactic meaning within the same line.