Update list-patterns.md

This commit is contained in:
Julien Couvreur 2021-04-12 12:24:26 -07:00 committed by GitHub
parent a05ef31c01
commit 0093f12358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ The *input type* for the *slice_pattern* is the return type of the underlying `t
#### Lowering on enumerable type
> **Open question**: Need to investigate how to reduce allocation for the end circular buffer. `stackalloc` is bad in loops. Maybe we'll just have to fall back to locals and a `switch`.
> **Open question**: Need to investigate how to reduce allocation for the end circular buffer. `stackalloc` is bad in loops. Maybe we'll just have to fall back to locals and a `switch`. (see [`params` feature discussion](https://github.com/dotnet/csharplang/blob/main/proposals/format.md#extending-params) also)
Although a helper type is not necessary, it helps simplify and illustrate the logic.