Implementation inheritance and default parameters scatter application logic throughout a code base and make local reasoning impossible. They do save you effort now, but you will pay for it later—with interest.
-
-
Replying to @jdegoes
Default parameters is a new one for me. What are the downsides? I'd imagine they work much like implicits.
2 replies 0 retweets 3 likes -
Replying to @pacoworks
Default parameters mean your application logic is located not just at the call site, but also at the callee site, recursively down the call stack. Implicits provide contextual information, which is ideally globally consistent (e.g. coherent type class instances).
4 replies 0 retweets 7 likes
Replying to @jdegoes @pacoworks
That's indeed a downside of default parameters, but nothing that cannot be fixed with syntax-parse style macros.
8:45 AM - 5 Feb 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!