Skip to content

Instantly share code, notes, and snippets.

@dyoo
Created April 29, 2013 20:30
Show Gist options
  • Save dyoo/5484527 to your computer and use it in GitHub Desktop.
Save dyoo/5484527 to your computer and use it in GitHub Desktop.
sketch
#lang racket/base
(define-namespace-anchor a)
(define (load-plug-in file)
(let ([ns (namespace-anchor->namespace a)])
(parameterize ([current-namespace ns])
(dynamic-require file 'print-colored))))
(define print-colored
(cond
[... 'off ... (load-plug-in ...)]
[... 'ansi ... (load-plug-in ...)]
[... 'win32 ... (load-plug-in ...)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment