This repository was archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
QEP 2: Enhanced Array Literals #857
Copy link
Copy link
Closed
Labels
area: languageChanges to the Q# languageChanges to the Q# languageenhancementNew request or suggestion for an improvementNew request or suggestion for an improvement
Milestone
Description
This issue tracks the implementation of QEP 2: Enhanced Array Literals. The feature branch is feature/qep2.
- Support the empty array constructor,
[](Miscellaneous changes for HM type inference and QEP 2 #884)- Add Hindley-Milner type inference module (Add Hindley-Milner type inference module #917)
- Replace existing type inference with Hindley-Milner (Use HM inference in expression and statement verification #940)
- Update usages of obsolete range fields in
QsTypeParameterandUserDefinedType(Update use of deprecated range field in UserDefinedType and QsTypeParameter #952)
- Support the repeated constant array constructor,
[x, size = n](Add "[value, size = n]" array constructor #856)- Support
[x, size = n]in attribute arguments (Miscellaneous changes for HM type inference and QEP 2 #884)
- Support
- Add
SizedArrayto NamespaceManager.fs (ExpressionHash) and QsharpCodeOutput.cs (Handle SizedArray in code output and optimizations #963) - Update optimizations for
SizedArray: ConstantPropagation.fs, Evaluation.fs, HelperFunctions.fs (isLiteral) (Handle SizedArray in code output and optimizations #963) - Address issues from bug bash (Improve HM type inference diagnostic messages #980)
Deferred:
- Deprecate the
new Type[n]array constructor (Deprecate new array expression #956) - Update QIR generation for
SizedArrayexpression kind
Metadata
Metadata
Assignees
Labels
area: languageChanges to the Q# languageChanges to the Q# languageenhancementNew request or suggestion for an improvementNew request or suggestion for an improvement