fsharp / fsharp/fslang-suggestions

Allow n partitions for ActivePatterns instead of a max 7

Open
#213 24 comments 7 reactions 0 assignees View on GitHub
approved-in-principle area: pattern-matching needs rfc
Dominant language
No language data
Stars
373
Forks
21
PR merge metrics
No merged PRs in 30d

Description

**Submitted by Steven Taylor on 3/25/2014 12:00:00 AM**
**23 votes on UserVoice prior to migration**

Active patterns can only have seven partitions (see: http://msdn.microsoft.com/en-us/library/dd233248.aspx)
It would be good if this was a stylistic constraint that could be overridden if desired.
For example, if active patterns are getting used to split up XML nodes meaningfully, you aren't in control of how many nodes sensibly fit into the top level.

**[Original UserVoice Submission](https://fslang.uservoice.com/forums/245727-f-language/suggestions/5676471)**
[Archived Uservoice Comments](../tree/master/archive/suggestion-5676471-allow-n-partitions-for-activepatterns-instead-of.md#comments)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked MSDN documentation for active-pattern partitions and the archived UserVoice comments. Review the existing discussion to identify design and compatibility concerns. Done should mean a concrete, agreed proposal for allowing more than seven partitions while preserving a clear opt-in behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.