Dne 29.8.2013 10:15, David Majda napsal(a):

> Because of these issues, I think it's generally better to avoid hash defaults 
> completely. It makes the code easier to reason about, which translates to 
> less 
> bugs and less time spent by debugging.

I agree with that. The point is that the existing code relies on the defaults,
we cannot easily get rid of them. This is legacy from YCP where defaults were
enforced. And defining the defaults just once looks like a nice feature to avoid
inconsistencies and mistakes.

As I already wrote, the correct solution would be to replace the hash by a 
native
Ruby object and wrap these defaults in a specific class. But I guess that won't 
be
trivial in storage...


--

Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
[email protected]
SUSE
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to