dotnet / dotnet/fsharp

function-keyword debug improvements

Open
#16,306 1 comment 3 reactions 0 assignees View on GitHub
Area-Debug Bug Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

@vzarytovskii pointed out that FSharp core team cannot use `function` keyword:
```fsharp
let myFun =
function
| Some x -> x
| None -> "nothing"
```
...but instead always write explicit match:
```fsharp
let myFun = fun itm ->
match itm with
| Some x -> x
| None -> "nothing"
```
...because easier debugging.

My suggestion would be following improvements:

- when you hover over "function"-keyword at debug-time, it should display the omitted parameter value as tooltip.
- you should be able to attach a debug-point to function keyword itself (if not working already).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.