-
-
Notifications
You must be signed in to change notification settings - Fork 410
Implement new Concept Exercise: dynamic-dispatch #558
Copy link
Copy link
Open
Labels
concept-exerciseAdding or improving a concept exerciseAdding or improving a concept exercisev3Related to Exercism v3Related to Exercism v3x:action/createWork on something from scratchWork on something from scratchx:knowledge/intermediateQuite a bit of Exercism knowledge requiredQuite a bit of Exercism knowledge requiredx:module/concept-exerciseWork on Concept ExercisesWork on Concept Exercisesx:size/largeLarge amount of workLarge amount of workx:type/contentWork on content (e.g. exercises, concepts)Work on content (e.g. exercises, concepts)
Metadata
Metadata
Assignees
Labels
concept-exerciseAdding or improving a concept exerciseAdding or improving a concept exercisev3Related to Exercism v3Related to Exercism v3x:action/createWork on something from scratchWork on something from scratchx:knowledge/intermediateQuite a bit of Exercism knowledge requiredQuite a bit of Exercism knowledge requiredx:module/concept-exerciseWork on Concept ExercisesWork on Concept Exercisesx:size/largeLarge amount of workLarge amount of workx:type/contentWork on content (e.g. exercises, concepts)Work on content (e.g. exercises, concepts)
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 replace
rpn-calculator-outputas the exercise that teaches dynamic dispatch (https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#dynamic-dispatch).rpn-calculator-outputshould be modified to depend ondynamic-dispatchinstead of teaching it. Make sure to reuse part of that exercise's introduction.Learning objectives
applyOut of scope
?
Concepts
dynamic-dispatchPrerequisites
Depends on the story.
Exercises
Add
dynamic-dispatchas a prerequisite offorth.Resources to refer to
https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#dynamic-dispatch
Implementing
Since dynamic dispatch depends on the existence of a few modules with the same function, we might want to provide that in the boilerplate instead of having the student implement those too.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.