Re:Brainfuck in one line of Python
by rplnt on Monday December 05, 2011 @06:54AM
(#3314239)
I'm not sure you can write function definitions, (nested) loops and other things that rely on indentation in single line using semicolons. At least I never managed to do that.
[ Parent
| on HN ]
Re:Brainfuck in one line of Python
by worldimperator on Tuesday December 06, 2011 @03:42AM
(#3318563)
You can do it with lambdas, but it's going to be absurdly ugly: http://blog.sigfpe.com/2008/09/on-writing-python-one-liners....