This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Improved deprecation notes #1451
Labels
area: diagnostics
The Q# compiler's error reporting mechanism
enhancement
New request or suggestion for an improvement
Is your feature request related to a problem? Please describe.
Deprecation notes can at times be difficult to understand. For instance,
warning QS3308: Deprecated syntax. Use [] to construct an empty array, or [x, size = n] to construct an array of x repeated n times.
is difficult to understand if you do not know what is meant byUse []
. This deprecation warning arises when usingDescribe the solution you'd like
My prefer solution would be to explicitly write the update statement. For instance, a warning could look like:
The message explicitly tells the user how to correct the in correct statement leaving out ambiguity and offering an automatic way to upgrade using the syntax formatter.
The text was updated successfully, but these errors were encountered: