5 ms·
Why would you want that?
by _quick_q 10y ago
Why would you want that?
- pbiggar 10y agoI like strings to be interpolated by default, and that's one of the most annoying things about python.
- _quick_q 10y agoSure, but _why_? What benefits do you see that having over this? (Pre-pending an 'f' to a string)
- pbiggar 10y agoIsn't "I like it" a good enough reason?
- orf 10y agoIt never is, and if it was every language would be a hodgepodge of things some people liked at one time.
- noir_lord 10y agoYeah we call that PHP (and I say that as someone who uses PHP all day and quite likes it).
- Animats 10y agoOh, that's where it comes from. As a non-PHP user, I thought it was a strange feature.
- pbiggar 10y agoNo, 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?
- orf 10y agoI was actually thinking of PHP as I wrote that comment, I didn't want to call it out directly
- pbiggar 10y agoI'm not asking for them to make it default for everyone. I just want it for me. So at a file level or something.
- deleted 10y ago[deleted]
- kjbflsudfb 10y agoMaybe, but it is a disappointing reason. I imagine OP was hoping for some insightful, more objective reason for this.
- pbiggar 10y agoSure, 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 :)