Programatic Christmas Hymns

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

Comments:

  1. Roberto Mello wrote (at Mon, 22 Dec 2008, 12:31):

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?

  1. Michael A. Cleverly wrote (at Thu, 25 Dec 2008, 18:26):

A hint; here is the same (or similar) concept using standard Unix command line utilities:

  1. stevel wrote (at Sat, 27 Dec 2008, 01:41):

package forget L

:)

Permanent URL for this post: http://blog.cleverly.com/permalinks/331.html