Skip to content

Convert constructors to new conventions #3853

Description

@brson

The new convention is as so:

struct Kitty {
}

impl Kitty {
    static fn new() -> Kitty { ... }
    static fn new_with_claws(claws: &[Claw]) -> Kitty { ... }
}

Still requires a snapshot before this can happen.

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

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions