On Fri, Oct 18, 2019 at 6:06 AM Anders Hovmöller <boxed@killingar.net> wrote:
On 17 Oct 2019, at 20:37, Chris Angelico <rosuav@gmail.com> wrote:
On Fri, Oct 18, 2019 at 5:25 AM Anders Hovmöller <boxed@killingar.net> wrote:
No. The reason I don't know is because this is a hypothetical example. In real code I would "know" BUT BE WRONG because the variable names would be outright lying.
/ Anders
So if you had 'separator' and 'width', would the variable names be outright lying, or would it then be reasonable to multiply a separator character by a width (eg 80) to create a line?
Eh. No. What? Are you really being sincere?
In any case this would be fine:
line = separator.fill(80)
Okay, so clearly we have quite different ideas about what's acceptable. That's fine. You're allowed to use a method, but since the language DOES support multiplication of string by repeat count, I'll quite happily continue to use the operator. ChrisA