Repository navigation
Prefer postfix type annotations for Options - #1335
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. |
|
Thanks! |
|
|
||
| ~~~~exercism/note | ||
| `T option` is the postfix syntax equivalent for `Option<T>`; the two syntax forms can be used interchangeably. | ||
| However, according to the F# Style Guide, the postfix notation is preferred for Option types (see [F# Style Guide section on Formatting Types and Type Annotations][fsharp-style-guide-generic-types-syntax]). |
There was a problem hiding this comment.
@ErikSchierboom, it looks like the link did not render as expected in the UI. Can you please take a look and suggest a fix? Also, any hints on how to preview Exercism-specific markup before merging to main?
There was a problem hiding this comment.
Ah yes. the exercism blocks can't refer to link referals outside the block. So feel free to inline the link here
Also correct a typo and a few minor formatting issues.