Skip to content

A code refactoring to convert bool to a Yes|No DU #15566

Open
@psfinaki

Description

@psfinaki

Update: actually turns out there are more ideas. See my original idea below and even more original ideas of kerams even more below.


Convert

type T = T of bool

to

[<RequireQualifiedAccess>]
type T = 
   | Yes
   | No

A true functional fix :)

Originally posted by @kerams in #15561 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions