Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Define toString directly on Algorithm subclasses? #7

@lgarron

Description

@lgarron

Pros:

  • Nice, concise formatting by default! (node actually truncates nested values)
  • Can still convert to JSON, so inspectability is not lost.

Cons:

  • Javascript does magic type conversion, and this could cause unexpected issues. For all I know 1 + [alg representing 2R] could turn into 3.
  • Viewing the printed alg instead of the structure might hide unexpected discrepancies.

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