Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omentic/antiformatter

attempting to make the worst possible passable racket code
https://github.com/omentic/antiformatter

cursed racket

Last synced: about 2 months ago
JSON representation

attempting to make the worst possible passable racket code

Awesome Lists containing this project

README

        

# antiformatter

usage: `racket antifmt.rkt `

regular racket code. boring to read, easy on the eyes. booooooo
```rkt
(define (mangle sexp)
(if (not (list? sexp)) (error 'mangle "not an s-exp")
(if (empty? sexp) ""
(let ((paren (random-paren)))
(string-append
(first paren)
(mangle-params sexp)
(random-newline)
(last paren))))))
```

anti-formatted racket code. exciting! an adventure to understand! still compiles (usually)
```rkt
[define [mangle sexp

] [if (not [list? sexp
] ) [error {quote mangle } "not an s-exp"
] (if {empty? sexp

} "" [let {{paren {random-paren
}
}
} [string-append {first paren } (mangle-params sexp

) {random-newline } [last paren ] ]
]

)

]
]
```