News for hackers. Stuff that matters.
Re:A Little Story About the `yes` Unix Command by simias on Thursday October 12, 2017 @07:36AM (#15457221)
I agree that for these types of constructs a more functional style could look better. That being said the OOP approach as the merit of reading in the proper order: you get your args, pick the 1st and then use that or the default "y" value.

If you rewrite this to use function calls instead of methods you end up with something like:

    (or (cadr (args)) "y")
Which is fine if you're used to lisp syntax but it's really a matter of taste at this point.

There are no comments on this comment yet.