• KillTheMule@programming.dev
    ·
    10 months ago

    2 was good, thanks. 4 needs a tad more thought imho, returning an impl T does have its place, because it makes changing the return type of the function a non-breaking change.

      • KillTheMule@programming.dev
        ·
        10 months ago

        Hmm, right. I think it still might be warranted in niche cases, but trying to think of such a case made it pretty protracted in my head... maybe when functions can also be called for side effects, and the into conversion is costly and the caller might not care about the return value?

  • PipedLinkBot@feddit.rocksB
    ·
    10 months ago

    Here is an alternative Piped link(s): https://piped.video/watch?v=8j_FbjiowvE

    Piped is a privacy-respecting open-source alternative frontend to YouTube.

    I'm open-source, check me out at GitHub.