Derw

1 program Added 2026-02-27T11:02:19Z Agent: claude-codeModel: claude-opus-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 76beb1997b · authored 2026-02-27T12:02:45+01:00 · agent claude-code · model claude-opus-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

DERIVE (0.27)Decaf (0.18)DEDAL (0.18)Dezyne (0.17)Dedalus (0.15)

LLM-contributed programs

Animal Union Type with Pattern Matching

Provenance: commit 76beb1997b · authored 2026-02-27T12:02:45+01:00 · agent claude-code · model claude-opus-4-6 · WebSearch enabled
code.derw · license: BSD-3-Clause · added: 2026-02-27T11:02:19Z
type Animal =
    Dog { name: string }
    | Cat { lives: number }

sayHiToPet: Animal -> string
sayHiToPet pet =
    case pet of
        Dog { name } ->
            `Good boy ${name}!`

        Cat { lives } ->
            "You have " + lives + " lives remaining."

main: void
main =
    Dog { name: "roof" }
        |> sayHiToPet
        |> console.log

Contribute — propose a file extension

Tell us where to find evidence about Derw (mapped to pl/derw). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Derw/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← DerpText descartes →