Have I been doing too much programming lately? (Or maybe I'm just a nerd at heart...?)
I ask because I strongly suspect I was the only person in the congregation today at Church who had the following Tcl-snippet immediately spring to mind when the choir began to sing a particular hymn:
interp alias {} christmas-messagify {} string map -nocase {l {}}
Can you guess the hymn? (Hint: It's a traditional English carol; ca. 16th-century per this source.)
—Michael A. Cleverly
Sunday, December 21, 2008 at 15:22
Wow, I haven't had a snippet of code come up to my head during a hymn. You must be doing programming AND be a nerd at heart, both of which can be great things!
I haven't done Tcl in too long to guess what the hymn is?
A hint; here is the same (or similar) concept using standard Unix command line utilities:
- sed -e 's/[Ll]//g'
- grep -iv l
- awk '!/[Ll]/'
package forget L
:)