Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

11-interfaces should use String() instead of ToString #26

@stellentus

Description

@stellentus

I saw a lot of students trying to implement ToString() instead of String(). Yes, they should have read the docs. I like the idea of making it a different name to clearly differentiate this example from the standard library stringer, but I think the students would actually be less confused if we used the same name. Sure, many won't realize that we're defining a different (but identical) interface, but I think that's ok.

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