News for hackers. Stuff that matters.
Re:Things to use in Python 3 by dragonwriter on Wednesday May 15, 2019 @06:21PM (#19924353)
Yeah, Groovy got it from Ruby which got it from Perl.
Re:Things to use in Python 3 by kragen on Wednesday May 15, 2019 @06:32PM (#19924440)
Yeah, Ruby uses the doublequote/singlequote distinction from Perl, but Ruby tags variables to interpolate with #{}, while Groovy and Perl use $.

Oh, although I guess Perl got that syntax from the Bourne shell…

Re:Things to use in Python 3 by dragonwriter on Wednesday May 15, 2019 @06:47PM (#19924545)
> Yeah, Ruby uses the doublequote/singlequote distinction from Perl, but Ruby tags variables to interpolate with #{}, while Groovy and Perl use $.

Huh, I could have sworn that I remembered that Groovy has taken it from Ruby.

Incidentally, Ruby uses just # for variables, it uses #{} for arbitrary expressions. A common style prefers #{} even where # alone works, though.

Re:Things to use in Python 3 by kragen on Wednesday May 15, 2019 @07:00PM (#19924626)
#notallvariables