
On Thu, Oct 17, 2019 at 10:42 PM Anders Hovmöller <boxed@killingar.net> wrote:
On 17 Oct 2019, at 13:26, Chris Angelico <rosuav@gmail.com> wrote:
Equally subjective, of course, but I prefer to be able to use operators. There's a good reason that we use mathematical symbols for non-numeric data types already (adding tuples together, multiplying a list by an integer, etc), and it definitely makes code easier to read.
The multiply a list/string thing is a big mistake imo. You almost never use it so the cost of not having it is almost nothing while the cost of having type errors propagate beyond the point where they happened is big.
Actually, I use it often enough to be useful. Probably more often than numeric exponentiation, and I'm sure you'd agree that 3**7 is better than requiring math.pow(3,7). I don't understand your point about type errors; how does "="*79 cause type errors? Or initializing a list of zeroes with [0]*20 ? And believe you me, the number of times I have *wished* for features like these when working in other languages (mainly SourcePawn) makes me definitely not see them as mistakes. ChrisA