Path: csiph.com!aioe.org!.POSTED!not-for-mail From: neverland@GOODEVEca.net (Pete) Newsgroups: comp.lang.ruby Subject: Re: how many diffrent between ruby 1.8 vs 2.3? Date: Sat, 9 Sep 2017 19:34:57 +0000 (UTC) Organization: Very little... Lines: 22 Message-ID: References: <1f82c7e4-8f25-45ea-858f-da97684ebf58@googlegroups.com> NNTP-Posting-Host: 1BtVwnQUT2/JRmLauC9P+A.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: neverland@GOODEVEca.net (Pete) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.ruby:7371 [Sorry, this is a somewhat aging thread, but I just read it now...] In article <1f82c7e4-8f25-45ea-858f-da97684ebf58@googlegroups.com>, Jesús Burgos wrote: >* This is a valid method definition in 1.9 but not in 1.8: > >``` >def method argument > # stuff >end >``` Eh...? I have Ruby 1.8.4 on one of my older machines, and I copy/pasted the above into it. It compiles fine -- and can be invoked: e.g. "method 11" (returning a nil result). Am I missing your meaning? Re the original query, I still find my 'Pickaxe' book for 1.8 an invaluable reference, even for Ruby 2.2. It's the new [absurd (:-/)] behaviour of strings that I have to keep diving to the web to sort out. -- Pete --