capitaomorte/yasnippet — pull request #201 by mgalgs (2011-12-09 21:30:55+00:00)
Title: use let* for expand-env

I couldn't find any discussions on this topic from a quick search, but is there any reason not to use `let*` instead of `let` for `expand-env`? By using `let*` one can have a snippet like so:

# -*- mode: snippet -*-
# name: testfile
# key: testfile
# expand-env: ((inputfile (file-name-nondirectory (buffer-file-name))) (outputfile (file-name-sans-extension inputfile)))
# --
// -*- compile-command: "g++ -g -o `outputfile` `inputfile`" -*-

int main(int argc, char *argv[])
{
$0
return 0;
}

I guess that `let*` might encourage huge values for `expand-env` (like in the above snippet), but I really like how clean it makes the snippet body...