Struct representation for active patterns
To make active patterns near-zero-cost abstraction I propose to add struct versions of FSharpOption and FSharpChoice to FSharp.Core and use it as active patterns backend.
The existing way of approaching this problem in F# is using plain functions with custom struct option/choice types instead of active patterns.
Pros and Cons
The advantages of making this adjustment to F# is reducing memory traffic for code with heavily use of active patterns.
The disadvantages of making this adjustment to F# is additional data structures should be added to the FSharp.Core.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): M
Affidavit
Please tick this by placing a cross in the box:
Please tick all that apply:
Struct representation for active patterns
To make active patterns near-zero-cost abstraction I propose to add struct versions of
FSharpOptionandFSharpChoiceto FSharp.Core and use it as active patterns backend.The existing way of approaching this problem in F# is using plain functions with custom struct option/choice types instead of active patterns.
Pros and Cons
The advantages of making this adjustment to F# is reducing memory traffic for code with heavily use of active patterns.
The disadvantages of making this adjustment to F# is additional data structures should be added to the FSharp.Core.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): M
Affidavit
Please tick this by placing a cross in the box:
Please tick all that apply: