News for hackers. Stuff that matters.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by Mathnerd314 on Saturday October 19, 2019 @04:27PM (#21300584)
It doesn't seem hard to add a parameter and then make two stubs:

  complex_function small_part = do
    a <- complex_thing_a
    b <- small_part a other_variables_in_scope
    more_complex thing

  original = complex_function orig_version
  mine = complex_function my_version
There are some issues if you have a lot of parameters where you might want a record to pass them around, but specialization is easier to use than inheritance in all the cases I've seen.

There are no comments on this comment yet.