Skip to content

Can Anagram be changed to either require or prevent Lifetimes? #166

@IanWhitney

Description

@IanWhitney

In #126, Anagram was the main reason we restructured our problem track. In that restructuring I grouped all of the "Lifeteme" problems together and moved them to be much later in the track.

But you can pass the Anagram test suite without lifetimes. Which, if I'd thought about it for more than 2 seconds, I may have realized.

I'm wondering if there's a way to change the Anagram test suite to either require or prevent a solution that uses lifetimes. And, if so, would we want to.

Pros & Cons of Forcing Lifetimes (or No Lifetimes)

Pros

  • Lets us position the problem more exactly
  • Lets us use the problem as a way to teach Lifetimes (assuming we force lifetimes)

Cons

  • Forces an implementation

If this is possible, then I'm also wondering if we could provide 2 test suites, one with Lifetimes & one without, so that students could see both in action.

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