Giter VIP home page Giter VIP logo

Comments (8)

andrzejressel avatar andrzejressel commented on June 26, 2024

Now when I think about it - maybe it should work that way? I guess the issue is Scala 3 allowing that ...

I was wrong (from equals Javadoc):

The equals method implements an equivalence relation on non-null object references:

It is symmetric: for any non-null reference values x and y, x. equals(y) should return true if and only if y. equals(x) returns true.

from zio.

andrzejressel avatar andrzejressel commented on June 26, 2024

It seems like c.inferImplicitValue does not work for function B => A if they are descendants.

https://docs.scala-lang.org/overviews/quasiquotes/syntax-summary.html#types - tq in ZIO's case return Tree which returns null for .tpe

from zio.

kyri-petrou avatar kyri-petrou commented on June 26, 2024

Hey @andrzejressel, I was going to link this issue on why I think this behaviour is correct for Scala 2 but not for Scala 3, but then I realised you were the one that opened it πŸ˜…

Why do you think that in this case Scala 3's behaviour is correct but not Scala 2's?

from zio.

andrzejressel avatar andrzejressel commented on June 26, 2024

They are both a bit scuffed - basically I believe that all directly related classes should be comparable in any order.

In Scala 2.13 it didn't work because of bug with implicit conversion finding, in Scala 3 it does not work because this conversion is not implemented for equals (only for > >= < <= comparisons).

EDIT: Even equals JavaDoc agrees with that - comparing parent to child should (must?) return the same as comparing child to parent.

from zio.

jdegoes avatar jdegoes commented on June 26, 2024

/bounty $75

from zio.

algora-pbc avatar algora-pbc commented on June 26, 2024

πŸ’Ž $75 bounty β€’ ZIO

Steps to solve:

  1. Start working: Comment /attempt #8874 with your implementation plan
  2. Submit work: Create a pull request including /claim #8874 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio!

Add a bounty β€’ Share on socials

Attempt Started (GMT+0) Solution
🟒 @andrzejressel #8923

from zio.

algora-pbc avatar algora-pbc commented on June 26, 2024

πŸ’‘ @andrzejressel submitted a pull request that claims the bounty. You can visit your bounty board to reward.

from zio.

algora-pbc avatar algora-pbc commented on June 26, 2024

πŸŽ‰πŸŽˆ @andrzejressel has been awarded $75! 🎈🎊

from zio.

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.