r/Compilers • • Jun 12 '26

Code Readability Comparison

/r/programmer/comments/1u3x0z8/code_readability_comparison/
0 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/matthieum Jun 13 '26

Expression like this [...] Might be short and powerful, but I find it hard to read.

It definitely is.

As the lengthy comment above mentions, this is hitting a particular bad spot of the standard library & type inference algorithm forcing extensive type annotations.

Ideally, we should be looking at darr.iter().sum() and calling it a day.