3 ms·
Apart from showing off syntax tricks, what exactly was the reason to write f(sleep(7)) instead of e.g. sleep(7);--i&&f()? Just minimizing the character count?
by xg15 7y ago
Apart from showing off syntax tricks, what exactly was the reason to write f(sleep(7)) instead of e.g. sleep(7);--i&&f()? Just minimizing the character count?
- esnard 7y agoThe original challenge [0] was submitted as a "code-golf" challenge, which means that the solution needed to solve the problem in the fewest bytes of source code. There are a lot of tricks to minimize the character count, and replacing a();b() with b(a()) is one of them. [0]: https://codegolf.stackexchange.com/q/196917/38454 https://codegolf.stackexchange.com/q/196917/38454
- xg15 7y agoAh, that makes sense. Thanks.