Odd

1 program Added 2026-03-17T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 4589fcf84c · authored 2026-03-17T05:35:42+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

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

LLM-contributed programs

Core Library (not, let, and macros)

Provenance: commit 4589fcf84c · authored 2026-03-17T05:35:42+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.odd · added: 2026-03-17T10:00:00Z
// init.odd - Basic language functionality
[module [odd core]]

def(not lambda(x) {
  =(x #f)
})

def(unspecified if(#f #f))

defsyntax(let x e) {
  // let(x 1) { x } => [[lambda [x] x] 1]
  syntax-assert(x "Expected exactly 3 arguments to let" =(length(x) 4))

  def(name list-ref(x 1))
  def(value list-ref(x 2))
  def(body list-ref(x 3))

  syntax-assert(x "Expected first argument to let to be a symbol" symbol?(name))

  def(ret list(list('lambda name synclo(e body list(name))) synclo(e value)))
  ret
}

defsyntax(and x e) {
  def(len length(x))
  if(=(len 1)) {
    unspecified
  } {
    if(=(len 2)) {
      synclo(e list-ref(x 1))
    } {
      def(ret list('let 'tmp synclo(e list-ref(x 1)) list('if 'tmp cons('and synclo(e list-ref-rest(x 1))) #f)))
      print(ret)
      ret
    }
  }
}

[export not and let quasiquote]

Contribute — propose a file extension

Tell us where to find evidence about Odd (mapped to pl/odd). 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/Odd/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← odbc ODDBALL →