-
Notifications
You must be signed in to change notification settings - Fork 708
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
Analysis options page should document strict modes #2338
Comments
/cc @bwilkerson @pq |
I agree. I believe that we're now at a point where we can remove the documentation of the @srawlins Just to confirm, are those the only two language options we plan to add at this point? When we do this, we should be sure to update the characterization of the language options, which currently reads
I don't think we want to characterize these two modes as experiments. |
Unfortunately, I got strong pushback from prominent voices inside google that But this work has not been done yet (I'd be in favor of prioritizing it). Maybe leave @srawlins Just to confirm, are those the only two language options we plan to add at this point? Correct. We have plans for
Agree. They've been vetted by internal google and by the sass packages. |
That would have been useful when it was proposed, but at this point, with Null Safety as close as I hope it is, I don't think doing this would add enough value.
That sounds good to me. I think it's reasonable to allow users to opt out of allowing implicit casts from dynamic. In the meantime we can at least stop documenting the "strong-mode" options that have been replaced. |
There is now a third: |
I’ll work on these soon. Thanks for the update. |
We should be clear about which SDK versions these appear in! |
Good point; I've updated the summary with "since" versions; strict-casts is not in until 2.17.0 |
@srawlins Just to confirm, |
Seems like it's 2.16 – works fine here dart-archive/ffigen#264 |
Ah yeah, sorry. I had checked |
We can still remove it here from the public docs if we don't feel it's something new, external developers should consider using. These docs should essentially be our recommendation for what things to use. |
With |
There are three strict analysis modes,
strict-raw-types
,strict-inference
, andstrict-casts
. These should be documented at https://dart.dev/guides/language/analysis-options.Summary:
strict-raw-types
:strict-inference
:strict-casts
:I'd love to collaborate with someone on how the page should be updated.
These three modes are probably recommended over
implicit-dynamic: false
, so we could deprecate that (or stop documenting it) at the same time. I'll confer with my team on this deprecation idea.The text was updated successfully, but these errors were encountered: