News for hackers. Stuff that matters.
Re:What’s New In Python 3.6 by _quick_q on Wednesday December 07, 2016 @12:44PM (#13124436)
Sure, but _why_? What benefits do you see that having over this? (Pre-pending an 'f' to a string)
Re:What’s New In Python 3.6 by pbiggar on Wednesday December 07, 2016 @12:55PM (#13124522)
Isn't "I like it" a good enough reason?
Re:What’s New In Python 3.6 by orf on Wednesday December 07, 2016 @12:58PM (#13124555)
It never is, and if it was every language would be a hodgepodge of things some people liked at one time.
Re:What’s New In Python 3.6 by noir_lord on Wednesday December 07, 2016 @02:16PM (#13125297)
Yeah we call that PHP (and I say that as someone who uses PHP all day and quite likes it).
Re:What’s New In Python 3.6 by orf on Wednesday December 07, 2016 @03:23PM (#13125870)
I was actually thinking of PHP as I wrote that comment, I didn't want to call it out directly
Re:What’s New In Python 3.6 by Animats on Wednesday December 07, 2016 @03:07PM (#13125737)
Oh, that's where it comes from. As a non-PHP user, I thought it was a strange feature.
Re:What’s New In Python 3.6 by pbiggar on Thursday December 08, 2016 @02:26PM (#13133303)
No, it's much much older than PHP. It's in PHP because it was in Perl (which is also why it's in Ruby). I think iit was in Perl because it was in sh. But I wouldn't be surprised to hear that it's older than that. Snobol maybe?
Re:What’s New In Python 3.6 by pbiggar on Wednesday December 07, 2016 @03:08PM (#13125748)
I'm not asking for them to make it default for everyone. I just want it for me. So at a file level or something.
Re:What’s New In Python 3.6 by kjbflsudfb on Wednesday December 07, 2016 @01:28PM (#13124850)
Maybe, but it is a disappointing reason. I imagine OP was hoping for some insightful, more objective reason for this.
Re:What’s New In Python 3.6 by pbiggar on Thursday December 08, 2016 @02:28PM (#13133322)
Sure, but "I like it" is actually a good reason. You can dissect I like it into maybe that I find it more productive, that I find strings easier to read when they're like that, or for other reasons, but it actually boils down to aesthetics: I like it :)