You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lens: mark as immutable-data-specific, not Haskell specific (#503)
At the time it was added (#97), indeed [Haskell][haskell] was the only
implementing track, and it was marked Haskell-specific.
However, the [Scala][scala] track has also implemented this exercise.
I predict it is confusing for Scala students to see "Haskell specific"
in the list of the Scala exercises. The proposal is to change it to
"specific to languages with immutable data".
[haskell]: exercism/haskell#84
[scala]: exercism/scala#157
Lenses can be a fit for any language that has immutable data and data
structures that can be nested.
In such a language, updating a deeply-nested field can be a lot of work,
but made easier with lenses. This exercise demonstrates the use of
lenses and is applicable to **any** language with immutable data, not
just Haskell.
The alternative considered was to use "functional programming" specific,
but the term "functional programming" is a little too broad. It's
altogether possible that a functional programming language could have
mutable data and a non-functional programming language could have
immutable data, so let's be precise about where lenses are helpful.
As of this writing, I do not believe any other exercise is
language-specific. Questions to this effect have been asked in:
* #352
* exercism/exercism#3113
If you are curious about having language-specific exercises, you may be
interested in exercism/DEPRECATED.trackler#22.
0 commit comments