[RFC FS-1099] Compiler helpers for list mutators #565
dsyme
started this conversation in
Language and core library RFC discussions
Replies: 2 comments 3 replies
-
Hey, I'd be really happy to see this, I proposed something very similar with a "safer" API here: fsharp/fslang-suggestions#926 I think this level of safety around the actual mutation would not cost much and make the whole thing easier to handle. Let me know what you think. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Out of interest, why does the instance of a ListCollector need to be |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a discussion thread for https://github.com/fsharp/fslang-design/blob/master/RFCs/FS-1099-list-collector.md
This adds to FSharp.Core intrinsics to do tail-cons mutation specifically designed for fast creation of F# lists by a
list { ... }
builder. This is useful from the outside and I'm 100% certain this will be needed for the inlined code for faster implementations of[ ... ]
in the future. So I think we should just add it now (it is in dotnet/fsharp#6811)Beta Was this translation helpful? Give feedback.
All reactions