Better HN
topnewbestaskshowjobs
Log inSign up

Sentack

1 karma · joined Jul 19, 2023 (3y ago) · 1 submissions

Submissions

comment 3y ago · link · parent

I too have run into this situation, and while list comprehension makes it possible, it's never clean looking.

Honestly, this is the approach I've been using even though I hate it. Specially if your code is going to be read by anyone other than you.