explicit indices in array literals
This commit is contained in:
parent
07b784373b
commit
0f743e0183
8 changed files with 60 additions and 3 deletions
|
|
@ -47,6 +47,8 @@ Additions
|
|||
- A field in an ``enum`` may be given an explicit string representation.
|
||||
This yields more maintainable code than using a constant
|
||||
``array[TMyEnum, string]`` mapping.
|
||||
- Indices in array literals may be explicitly given, enhancing readability:
|
||||
``[enumValueA: "a", enumValueB: "b"]``.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue