Skip to content

Implement new Concept Exercise: with #560

Closed
@angelikatyborska

Description

@angelikatyborska

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Goal

The goal of this exercise is to teach the student how the with special form works and when it is appropriate to use (e.g. to avoid nested cases)

Learning objectives

  • Know how to use with to chain matching clauses
  • Know how to use the else block in with to match on different kinds of errors
  • Know when not to use with

Out of scope

?

Concepts

  • with

Prerequisites

  • errors (the with special form is most commonly used with error/ok-tuples and the exercise should teach that)
  • pattern-matching
  • other, depending on the story

Exercises

Maybe sgf-parsing could have with in its requirements?

Resources to refer to

Analyzer

It will be necessary to use the analyzer to check that the with form was indeed used, and that no alternatives (e.g. cases) were used.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions