fsharp / fsharp/fslang-suggestions

Add "complement" and "logicalNot" operators to resolve the confusion with "~~~"

Open
#472 1 comment 1 reaction 0 assignees View on GitHub
approved-in-principle area: primitives-and-literals good first issue needs rfc
Dominant language
No language data
Stars
373
Forks
21
PR merge metrics
No merged PRs in 30d

Description

**Submitted by Don Syme on 8/4/2015 12:00:00 AM**
**1 votes on UserVoice prior to migration**

When used on user-defined types, the ~~~ operator resolves to op_LogicalNot rather than the expected op_OnesComplement. See https://github.com/Microsoft/visualfsharp/issues/457#issuecomment-104900399 for a workaround.
This should be fixed FSharp.Core. An attempt to fix this transparently failed, see https://github.com/Microsoft/visualfsharp/pull/458.
A plan to address this going forward is at https://github.com/Microsoft/visualfsharp/pull/458#issuecomment-127711336 but will require an update to FSharp.Core.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.