News for hackers. Stuff that matters.
Re:The Most Beautiful Piece of Code That Prints 42 by labster on Sunday May 13, 2018 @03:22PM (#17060482)
Like most code, this is way too easy in Perl 6.

    > perl6 -e 'say "Life, the Universe and Everything".WHY'
    42
Re:The Most Beautiful Piece of Code That Prints 42 by sideshowb on Monday May 14, 2018 @03:17AM (#17063447)
For non perl users - does this really work or are you being ironic?
Re:The Most Beautiful Piece of Code That Prints 42 by labster on Monday May 14, 2018 @03:37AM (#17063565)
Re:The Most Beautiful Piece of Code That Prints 42 by sideshowb on Monday May 14, 2018 @04:08AM (#17063705)
Today I learned about meta methods. Thanks :)
Re:The Most Beautiful Piece of Code That Prints 42 by wongma on Monday May 14, 2018 @03:39PM (#17068730)
I searched for a Perl6 repl to try it on and it works! Perl is so whimsically fun. :)

https://tio.run/#perl6