Skip to content

Consistent notation in docs for single effect vs multiple effects #283

@BruceEckel

Description

@BruceEckel

For consistency, I recommend using the {} ONLY when you have multiple effects. For example, instead of:

def readAndParseGuess(): Result[String, Int32] \ {Guess} = ???

def gameLoop(secret: Int32): Unit \ {Guess, Terminal} = ???

I suggest always leaving the {} off for single effects, like this:

def readAndParseGuess(): Result[String, Int32] \ Guess = ???

def gameLoop(secret: Int32): Unit \ {Guess, Terminal} = ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions