bowbahdoe / mccue.dev-comments

0 stars 0 forks source link

pages/6-22-24-extension-methods-are-harder-to-read #17

Open utterances-bot opened 5 months ago

utterances-bot commented 5 months ago

Extension methods make code harder to read, actually

https://mccue.dev/pages/6-22-24-extension-methods-are-harder-to-read

anmnz commented 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?

bowbahdoe commented 5 months ago

@anmnz Good catch, fixed.

origineering commented 4 months ago

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.