4 ms·
I think Ruby got it from PERL... And I'm not sure if PERL was the first language to use these, either. EDIT: of course, there's Smalltalk, where postfix condit
by klibertp 11y ago
I think Ruby got it from PERL... And I'm not sure if PERL was the first language to use these, either.
EDIT: of course, there's Smalltalk, where postfix conditionals and loops are the only form available. Maybe Ruby got inspired by those.
- Retra 11y agoAlgol 60 had conditional expressions. Pretty much every functional language and LISP has them. They've also been in use in mathematics for longer than computers have been around.