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 3 months ago

utterances-bot commented 3 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 3 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 3 months ago

@anmnz Good catch, fixed.

origineering commented 2 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.