fsharp / fsharp/fslang-suggestions

Implement implicit conversion between F# fun to .NET generic Func<> for ASP.NET minimal API.

Open
#1,334 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
373
Forks
21
PR merge metrics
No merged PRs in 30d

Description

I propose F# implicitly cast F# fun with parameter attributes to C# delegate. It will help to write ASP.NET minimal API in short way

image

To do the same on F# I must create separate function.
image

C# looks better for this
image

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, or entry points are named. Start by investigating F# function conversion to .NET generic Func<> delegates and the ASP.NET minimal API examples shown in the issue. Done means an agreed language design and implementation path for implicit conversion of attributed F# functions, with tests covering the proposed 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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.