3 ms·
>Also, I forgot that `unless` even exists! I don't think I've seen it in any code since my ruby days 7 years ago. Pascal has both a while loop and a repeat ...
by fuzztester 3y ago
>Also, I forgot that `unless` even exists! I don't think I've seen it in any code since my ruby days 7 years ago.
Pascal has both a while loop and a repeat ... until loop (and a for loop too, with to and downto variants, IIRC.
And cannot remember for sure, but I think Unix shell has an unless statement, although you can use if with not too.