by Mathnerd314 · 7y ago · 0 comments
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.No comments yet.