On Tuesday, 4 February 2014 at 22:53:30 UTC, Andrej Mitrovic
wrote:
On 2/2/14, Brian Schott <[email protected]> wrote:
We all know how nice well-written idiomatic D code looks, but I
think it's time that we try to really explore the full power of
the language.
D is the tersest language around, just observe how I can make
functions returning functions with ease:
void main()
{
(() => (){})()();
}
I call this one the Programmer's Hairbrush:
void main()
{
(()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
()=>
(){}
)
()
()
()
()
()
()
()
()
()
()
()
()
()
()
()
()
()
()
()
;
}
http://dpaste.dzfl.pl/490d5e6707f8