-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use idiomatic/canonical option type annotations in Result module #14465
Comments
I don't know much about signature files vs. implementation files, but that's the transformations I am thinking of, yes. Except you should use |
These replacements could be done in all signature files, by the way, not just those pertaining to the If you agree, I can make a PR for this. A couple of questions:
|
I would recommend to limit a PR to a handful of "find/replace" operations and explain those in the PR. Each replacement being a separate commit (with description telling which action caused it) sounds great. Array usage has been recently unified (@edgarfgp did a lot of work there), I am not sure if there are any things left. |
Regarding
|
So I would only be changing to postfix lowercase notation in signature files for these?
Apart from |
Protip - GH doesn't notify about reactions, so only due diligence ensured I am now aware you agree and that I can proceed 😉 |
Result.toOption
has return typeOption<'T>
. The idiomatic/canonical notation is'T option
. The use ofOption<'T>
here means thatOption<'T>
shows up in code/line lens and tooltips all over my codebase when using this function, whereas I would prefer'T option
.I haven't checked, but I am guessing that this could apply to other functions in the
Result
module, too.For completeness, note that the same kind of issue would also apply to functions typed with
List<'T>
instead of'T list
, and other similar types. (I haven't checked or encountered any, though.)The text was updated successfully, but these errors were encountered: