dotnet / dotnet/fsharp

Remove unsafe operations from the code fixes

Open
#15,764 0 comments 0 reactions 0 assignees View on GitHub
Area-LangService-CodeFixes Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

I would suggest removing all unsafe operations like `exactlyOne`, `head`, etc. From the code fixes (or really anywhere where it can crash in VS) regardless of if the underlying cause is legitimate. Instead of crashing report telemetry so we'll find out about it.

Could be also a nice analyzer to highlight all of these.

_Originally posted by @0101 in https://github.com/dotnet/fsharp/issues/15685#issuecomment-1665420621_

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.