Hacker News new | ask | show | jobs
by IshKebab 1058 days ago
"Overlooked core functionality" is an interesting way to spell "massive footgun".
1 comments

I've been coding for most of my life and I can't believe some people would choose some of these tricks when python has much simpler syntax for most of these.

The first, *_, last trick for example would be particularly obnoxious to encounter. The first element is my_list[0], last is my_list[-1]. Dead simple, way easier to understand at a glance.

And does not work at all on iterators.