Hi,

it was Halloween last week so my mind turned to zombies, in
particular those beginning with Yast::Builtins and Yast::Ops.

As you may remember, we have a zombie killer:
https://rubygems.org/gems/zombie-killer
https://github.com/yast/zombie-killer

Originally I set a too ambitious goal: automatically removing
zombies if I can automatically prove that it is safe, mostly by
ensuring that their arguments are not nil. That did not work out.
But we can still have something useful if we concede that the
resulting code will have to be tested anyway.

So `zk -e` is an "eager mode" of the zombie killer which does not
care about the arguments possibly being nil, and simply replaces
`Ops.add(a, b)` by `a + b` and so on.

Here's an example of it in action:
https://github.com/yast/yast-installation/pull/761/files

Let me know if it helps you (or not).

-- 
Martin Vidner, YaST Team
http://en.opensuse.org/User:Mvidner

Attachment: signature.asc
Description: Digital signature

Reply via email to