You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SPECIFICATION.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@
54
54
55
55
Keywords and built-in names MUST be matched case-sensitively and MUST be written in their canonical uppercase forms. If a reserved word is written in any other case, it MUST be tokenized as an identifier instead.
56
56
57
-
The character `-` MUST be interpreted only as the leading sign of a numeric literal or as the dash used by slice syntax `lo-hi`. Any unsupported use of `-` MUST raise a syntax error.
57
+
The character `-` MUST be interpreted only as the leading sign of a numeric literal. Any unsupported use of `-` MUST raise a syntax error.
58
58
59
59
The character `~` MUST be reserved for coerced function parameters and MUST NOT appear inside identifiers.
Ifatensortargetusessliceindicessuchas`lo-hi`or`*`,theright-handsideMUSTevaluatetoa`TNS`whoseshapeexactlymatchestheselectedslice,andeverywrittenelementMUSTsatisfythetarget's static type constraints.
107
+
Ifatensortargetusessliceindicessuchas`lo:hi`or`*`,theright-handsideMUSTevaluatetoa`TNS`whoseshapeexactlymatchestheselectedslice,andeverywrittenelementMUSTsatisfythetarget's static type constraints.
108
108
109
109
---
110
110
@@ -328,7 +328,7 @@
328
328
329
329
`TNS` indexing MUST use square brackets (`[` and `]`) with a comma-separated list of indices. Indexing MUST be one-based. Negative indices MUST count backwards from the end of the dimension.
330
330
331
-
Slice indexing MUST be supported in any index position using a range of the form `lo-hi`. The selected slice MUST be inclusive of both endpoints. The symbol `*` MAY be used in an index position to denote a full-dimension slice, selecting every element along that axis.
331
+
Slice indexing MUST be supported in any index position using a range of the form `lo:hi`. The selected slice MUST be inclusive of both endpoints. The symbol `*` MAY be used in an index position to denote a full-dimension slice, selecting every element along that axis.
0 commit comments