Sync Copilot context

This commit is contained in:
vczh
2026-05-09 02:42:31 -07:00
parent ec1d324249
commit 238dda1fec
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -101,4 +101,6 @@ When `VlppParser2` is available to the current project, complex parsers always r
- Prefer `var v = e;` whenever `T` can be omitted.
- Prefer `var v : T = e;` over `var v = e over T;` if `T` cannot avoid.
- When implicit type conversion works at the place, avoid `cast`, `as` and `infer` expression.
- Prefer `cast *` over `cast T` when the context accepts `T`.
- Prefer `cast *` over `cast T` when the context accepts `T`.
- Nested `try-catch` and `try-finally` can be merged into one single `try-catch-finally` statement.
- Prefer strong typed collections in Workflow, but when writing C++ reflectable interfaces, use `Ptr<IValue*>`.