Add Flags Attribute concept exercise - #1387
Conversation
|
Hello. Thanks for opening a PR on Exercism 🙂 We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in. You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch. If you're interested in learning more about this auto-responder, please read this blog post. Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it. |
|
I'm currently away, so I don't have time to review this right now. Regarding your question: I'm positive that we have other exercises that have the same problem. Likely the discriminated unions exercises. Maybe you could check to see if that is referenced somewhere? There might be an exclude list or something. |
Unlike enum cases in C#, discriminated union members cannot reference other members in F#.
Introduce the Flags Attribute (aka flags-discriminated-union) concept and provide an exercise to teach it. The exercise goal is to use the Flags attribute to build a password checker capable of reporting multiple rule violations in one call.