Re:Python Language Summit: PEP 654 – Exception Groups and Ex...
by coldtea on Sunday May 16, 2021 @07:20AM
(#27172875)
"in the usual Python vein of introducing an abstraction to save 2-3 lines"
[ Parent
| on HN ]
Re:Python Language Summit: PEP 654 – Exception Groups and Ex...
by ledauphin on Sunday May 16, 2021 @10:48AM
(#27174080)
this is what abstractions are for. they can be done poorly or well, but there's a reason iterators are favored in most use cases over
for (i = 0, i < n; i++) { a[i] }
- they're simpler to reason about because they restrict the conceptual operational space.