fsprojects / fsprojects/FSharpPlus

Active Patterns

Open
#119 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement RFC
Dominant language
F#
Stars
941
Forks
106
PR merge metrics
No merged PRs in 30d

Description

At the moment we have only one active recognizer: Parse and I'm not very happy with the name as it does exactly the opposite (maybe Parsed is a better name, or ToString or String given that's the inverse function).

But the goal of this issue is to compile a list of useful active patterns and discuss if it worth having them in F#+.

Here are some:

  • IgnoreCase for case insensitive string comparison
  • Date (y, m, d) to deconstruct a DateTime to date components. It could be overloaded to handle tuples.
  • Null check

(I might add more stuff to this list)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing Parse active recognizer and the proposed IgnoreCase, Date, and null-check patterns. Decide which patterns belong in F#+ and settle their names and behavior; done means an agreed scope, since the issue identifies no file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.