Skip to content

Use inherits() instead of is() in chk.hy() #32

Closed

Description

@GegznaV

I'm planning to update chk.hy() and related functions. This would be one of the steps.


The documentation of methods::is() says:

Although inherits is defined for S3 classes, it has been modified so that the result returned is nearly always equivalent to is, both for S4 and non-S4 objects. Since it is implemented in C, it is somewhat faster. The only non-equivalences arise from use of setIs, which should rarely be encountered.

Is it OK for you @cbeleites, @bryanhanson to use inherits() instead of is() in chk.hy()?

Activity

  1. bryanhanson commented on Aug 4, 2021

    @bryanhanson
    Contributor

    I think I follow the reasoning in these related issues, they sound fine to me but CB should have the final say.

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