Skip to content

Why does SwiftyJSON overwrite comparison operators for NSNumber? #302

Description

@doschi

Hi,
First:
Thanks for writing/maintaining SwiftyJSON!
I really like it.

My Question/Problem is:
SwiftyJSON overwrites the default behaviour of the comparison operators for NSNumber. (==,!=,<,>...)
I.e. comparing 1 == true now gives false instead of true
What is the reason for that?

I just had a bug that was caused only by importing SwiftyJSON in some file and therefore pretty magical to debug...
Is it absolutely necessary to change such basic functionality?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions