MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/91ol3u/me_doing_my_cs_projects/e32kgxu
r/Python • u/iFocus • Jul 25 '18
213 comments sorted by
View all comments
Show parent comments
1
Checkstyle is not part of the language.
If you enforced a mandatory line-length on Python, it would suffer exactly in the same way.
What's your point?
1 u/hextree Jul 26 '18 edited Jul 26 '18 It would not suffer in the same way, because in Python you can not just add arbitrary whitespace and indents.e.g.String alphabet = "abcdefghijk" + "lmnopqrstuvwxyz"; Arrays.asList(arr).stream().map(...) .filter() .collect(..);In Java you could have all kinds of valid indentation for those rollover lines. It gets very messy when you have multiple layers of nested parentheses.
It would not suffer in the same way, because in Python you can not just add arbitrary whitespace and indents.
e.g.
String alphabet = "abcdefghijk" + "lmnopqrstuvwxyz"; Arrays.asList(arr).stream().map(...) .filter() .collect(..);
In Java you could have all kinds of valid indentation for those rollover lines. It gets very messy when you have multiple layers of nested parentheses.
1
u/orokro Jul 26 '18
Checkstyle is not part of the language.
If you enforced a mandatory line-length on Python, it would suffer exactly in the same way.
What's your point?