DEV Community

loading...

Discussion on: Elm challenge on Exercism: Rna Transcription

stevensonmt profile image
stevensonmt

The exercise is written such that it expects to get a Result.
github.com/exercism/elm/blob/maste...

Thread Thread
drbearhands profile image
DrBearhands • Edited

I would argue this isn't a good exercise then. There are better way to explain result, that do not promote improper state representation (such as making a safe division function).

I apologize for being harsh. I understand writing this stuff is time-consuming and sometimes hard, but I do believe this (making impossible state impossible) is an important concept, central to Elm and FP in general.