a few days ago i was prompted to look at perl 6 aka raku more closely and learned that its ternary operator was ?? !!, as in

my $result = $score > 60 ?? 'Pass' !! 'Fail';

coincidentally, ?? !! also perfectly captures my reaction to finding out about it

· · Web · 0 · 0 · 0
Sign in to participate in the conversation

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!