Skip to content

[suggestion] Nicer caseof syntax #1

@DanweDE

Description

@DanweDE

A thought: How about instead of:

caseof(value, [
  [C, C2, (c) => c],
  [D, (d) => null]
])

also (or exclusively) allowing a imho much nicer:

caseof(value,
  C, C2,
  (c) => c,
  D,
  (d) => null
)

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