Better HN
topnewbestaskshowjobs
Log inSign up

11Di

1 karma · joined Apr 12, 2020 (6y ago) · 1 submissions

Submissions

comment 6y ago · link · parent

For comprehensions should alleviate the examples you have given with regards to readability.

Although yes there are other more complex instances in which nested matches might come up. Generally I would think to handle them by creating a function that contains the next layer of matching instead of trying to come up with an uber function. Adds a bit more verbosity perhaps but I find it is fairly easy to follow and show intent.