evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

`--strict` should disallow implicit string concatenation #837

Closed evhub closed 3 months ago

evhub commented 3 months ago

It's a pretty classically bug-prone Python feature (e.g. it can hide missed commas), so it might be worth warning about it in --strict mode. We can even consider compiling string literals added together with plus into implicit string concatenation to avoid the performance hit.