Open utterances-bot opened 5 months ago
Nice piece. I enjoyed reading it.
I think the signature of Box.map()
should be Box<R> map(Function<? super T, ? extends R> f)
, (instead of ? super R
), shouldn’t it?
@anmnz Good catch, fixed.
thanks for taking the time to write this essay. really constructive criticism. i myself am no fan of dot method syntax in general for several reasons, one of them being that it doesn't scale well — never has. there are other better ways but require the PL to be multi-dispatch.
Extension methods make code harder to read, actually
https://mccue.dev/pages/6-22-24-extension-methods-are-harder-to-read