4 ms·
How about a language named "."? The source code for the "hello, world" program would be in a file called "hello..". Or Ctrl-G (BEL). Just doing a directory lis
by _kst_ 5y ago
How about a language named "."? The source code for the "hello, world" program would be in a file called "hello..".
Or Ctrl-G (BEL). Just doing a directory listing would make your terminal beep.
Or LF if you really want to mess up your directory listings.
Or NUL if you just want to make it impossible to create a correctly named source file (unless you consider "hello." to be equivalent to "hello.\0").
- akiselev 5y ago>* (unless you consider "hello." to be equivalent to "hello.\0").* Even better, some software will consider that valid and other won't, depending on which string handling functions they use to build up the path
- _kst_ 5y agoOn Unix-like systems, you can't use '\0' in a path name. I think that's also the case on Windows. Nor can you use '/', so trying to use that as a file extension would be almost equally silly.
- boothby 5y agoThe language, where a machine starts with a list of symbols +.<>],[!- and accepts two instructions p and q which apply the permutations (+-)(,.)([])(<>) or (!.<[+>],-) respectively and executes the brainfuck instruction given by the second symbol whenever the first symbol is !, doesn't even have a name.