Code Monkey home page Code Monkey logo

Comments (5)

non avatar non commented on May 22, 2024

I agree with pretty much all of this: I think we should prefer [A: Foo] if the Foo[A] instance is just being routed somewhere else, and (implicit xyz: Foo[A]) if method's on the xyz instance are needed (since even with @inline the Foo.apply call has overhead).

As far as the names of the evidence parameter, I know @tixxit prefers (implicit A: Foo[A]). How do folks feel about that? I often use ev but on reflection I don't think there's really a good reason -- it seems a bit cranky. I guess I don't know showA but unless there are multiple instances it seems verbose.

from cats.

non avatar non commented on May 22, 2024

(And yes, we do need a contributor guide that spells this out.)

from cats.

fthomas avatar fthomas commented on May 22, 2024

I always liked the idea to view the A in (implicit A: Foo[A]) as the companion for the type parameter. But this is only applicable as long as you only have one instance per type parameter. In the case of two or more instances I guess I'd prefer (implicit fooA: Foo[A], barA: Bar[A]).

from cats.

julien-truffaut avatar julien-truffaut commented on May 22, 2024

shall we close this ticket?

from cats.

non avatar non commented on May 22, 2024

Yes, I think we have reached broad agreement.

from cats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.