Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Would Anyone Use Perl 6?. Parent comment
If you wanted, you could get pretty close in ruby with only a sprinkle of ill-advised metaprogramming.
> junc{5|4} + 1 any(6, 5) > junc{5&4} + 1 all(6, 5) > x = junc{5|4|3|2} any(5, 4, 3, 2) > puts "yep!" if x + 2 =~ 7 yep! > junc{(2|3|4|5|6|7) & (3|4)} + 1 =~ 5 True > junc{(2|3|4|5|6|7) & (3|4)} + 1 =~ 6 False
I guess I'm just curious if this is a situation that comes up often enough to need a built in literal syntax.
There are no comments on this comment yet.
If you wanted, you could get pretty close in ruby with only a sprinkle of ill-advised metaprogramming.
would be possible.I guess I'm just curious if this is a situation that comes up often enough to need a built in literal syntax.