exercism / elixir

Exercism exercises in Elixir.
https://exercism.org/tracks/elixir
MIT License
611 stars 397 forks source link

Implement new Concept Exercise: `dynamic-dispatch` #558

Open angelikatyborska opened 3 years ago

angelikatyborska commented 3 years ago

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-output as the exercise that teaches dynamic dispatch (https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#dynamic-dispatch). rpn-calculator-output should be modified to depend on dynamic-dispatch instead of teaching it. Make sure to reuse part of that exercise's introduction.

Learning objectives

Out of scope

?

Concepts

Prerequisites

Depends on the story.

Exercises

Add dynamic-dispatch as a prerequisite of forth.

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.

apoorv-2204 commented 1 year ago

Hi is issue still open to pick?

angelikatyborska commented 1 year ago

@apoorv-2204 Yes, nobody started working on this yet.

zxdsc commented 2 months ago

Hello!

The link under resources leading not to where it expected. Is there still a thing in Elixir such as dynamic-dispatch?

angelikatyborska commented 2 months ago

@zxdsc This link https://hexdocs.pm/elixir/Kernel.html#apply/3 ? Yes, that's exactly the function that allows you to do dynamic dispatch in Elixir