Re: Python and the minus in a filename
var file = 'a-b.txt';
And then use the variable file for the filename.
CamelCase is no better. You have to press the SHIFT key there too. Using a minus means no shift key -- just press keys. :-)
I learnt years ago, when working with Lisp, that there was a language that would let you do what you want. Hey, Lisp even lets you have a variable called
(setf 3-men-in-a-boat 'a-b.txt) works! How cool is that?
Sorry, but if the language is going to be prescriptive to stop me doing what I want, I'm going to ignore it. I already ignore Microsoft for that reason. Python, alas, is in the same boat.
But thanks for clarifying. At least now I know I can't. Appreciated.
CL-USER(1): (setf 3-men-in-a-boat 'a-b.txt)