in reply to Re: Brainfuck Interpreter
in thread Brainfuck Interpreter
@_[0] is better written as $_[0]
That depends on your definition of "better". If you're writing code to parse a language which is deliberately confusing, it's arguably better to parse it in as confusing a way as possible.
I found this parser really easy to understand - why not write an obfuscated parser for obfuscated code? ;-)
Update: Perhaps I need to make it clear that I'm not being entirely serious. It's certainly a bad idea to use the side effects of an array slice in real code. On the other hand, if you want to do something confusing, do it in the most confused way possible!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Brainfuck Interpreter
by Juerd (Abbot) on Mar 13, 2002 at 13:31 UTC |