Any comments on this? These Emacs screenshots show the tentative "one-source-file package" format that I'd like to use for almost all of my packages. I'd release a tool so that others can maintain their own packages in this format, if they want to.

http://www.neilvandyke.org/temporary/one-file-racket-package-1-color.png
http://www.neilvandyke.org/temporary/one-file-racket-package-1-mono.png

The author of the package works only from this one source file. A simple packaging-time tool would always regenerate the "sample.scrbl" and "info.rkt" files from this source file (the source file would actually be named "main.rkt", in a directory named "sample").

I put the metadata in an `info` submodule, and the embedded docs are pure Scribble on lines prefixed by 3 semicolons. This is similar to my original Scheme Funcelit format from eons ago (which is why Quack already colors it somewhat), but made modern Racket idiomatic. Which means cryptic-looking `info` submodule bulk in the file, but that's a tradeoff for the win of consolidating an entire package source as one file. There is no post-package-release-time dependency on something like "mcfly".

Neil V.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to