A First Guile Script
logicgrimoire.wordpress.com
logicgrimoire.wordpress.com
To build on that example, it might be cool to show off Guile's pattern matching capabilities when you are checking the list of program arguments:
(use-modules (ice-9 match))
(match (program-arguments)
((_) (display "Not enough arguments\n"))
((_ file-names ...) (for-each do-stuff file-names)))
The 'match' macro is one of the most useful things I have ever learned to use. No more car/cdr/cadadr/etc., just use match!Edit: The title should be edited to say "(2012)", I think. I wasn't paying attention and thought this was a new blog post.