Array splicing #374
Labels
A-array
Array related proposals & ideas
A-expressions
Term language related proposals & ideas
A-syntax
Syntax related proposals & ideas
A-update-syntax
Struct update syntax related proposals & ideas
T-lang
Relevant to the language team, which will review and decide on the RFC.
Analogously with functional struct updates, we could also allow "functional array updates", or in other words splicing of fixed-length arrays:
Here
b: [int, ..9]
. Unlike FSU, there can be any number of array splices in any positions.This has some syntactic overlap with replication:
but even the latter case can always be disambiguated based on the type of
x
(it's either an integer or an array; it can't be both).(Also, we may want postfix rather than prefix
..
in this case, removing the overlap completely. But we should also want that for FSU.)The text was updated successfully, but these errors were encountered: