Skip to content

attempting to make the worst possible passable racket code

License

Notifications You must be signed in to change notification settings

omentic/antiformatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

antiformatter

usage: racket antifmt.rkt <file>

regular racket code. boring to read, easy on the eyes. booooooo

(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)

[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 ] ]
]

)

]
]

About

attempting to make the worst possible passable racket code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages