The commalist package for LaTeX

This is a LaTeX package that allows the user to define commands that accept comma-separated lists as arguments.

The motivation was that I wanted to automate something like

\newtheorem{defn}[thm]{Definition}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{conj}[thm]{Conjecture}
but I could not find anything suitable on the Internet. Since I happened to have some time, I wrote something for myself. Using commalist, the above can be achieved by
\newcomma{\defthm}{3}{2-3}{\newtheorem{#2}[#1]{#3}}
\defthm{thm}{defn/Definition,lem/Lemma,prop/Proposition,cor/Corollary,conj/Conjecture}.

The current version of commalist is 1.1, which is dated 14 January, 2012.