3 ms·
Ruby might have taken that from Perl, which also implicitly returns the last evaluated statement in a subroutine.
by tmtvl 4y ago
Ruby might have taken that from Perl, which also implicitly returns the last evaluated statement in a subroutine.
- weaksauce 4y agoprobably did... ruby took a lot from perl... also took a lot from many other languages but perl probably the most
- lilith_of_debts 4y agoFun fact: Matz was a lisper prior to creating ruby. He even wrote an email client entirely in Emacs lisp. Not wrong that ruby took a lot from perl, but it was heavily influenced by lisp and smalltalk and I'd personally argue those are the two largest influences. It does seem that ruby was specifically designed to grab Perl programmers though. Several features match exactly.
- EFreethought 4y agoAnd maybe Perl got it from Lisp. It seems like the longer I am in software development, I find out that more and more things came from Lisp.
- wglb 4y agoAgree, but it did kind of borrow the format statement from Fortran.