Code Monkey home page Code Monkey logo

Comments (4)

mattijsf avatar mattijsf commented on June 15, 2024

Do you have any idea why it is necessary to implement != operator explicitly (5178e93)? Why isn't swift just calling the inverse of == like it does with my RegularPoint

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 15, 2024

I have no ideas, why so occurs.%( This magic....%(

from protobuf-swift.

alexeyxo avatar alexeyxo commented on June 15, 2024

I understood!!! Take a look last commit. If you have any question, write me.

from protobuf-swift.

mattijsf avatar mattijsf commented on June 15, 2024

Ah! The concrete message subclass should have been Equatable not the abstract message class. Right?

If that is the case I still find it a bit confusing that it does call the == operator of ProtoPoint because it is implemented / overridden explicitly in the subclass. But apperently Swift prefers the take the inverse of the == operator within it's superclass AbstractMessage when using != because that is designated class that conforms to Equatable. I have mixed feelings about that... but yeah...

from protobuf-swift.

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.