Hacker News new | past | comments | ask | show | jobs | submit login

Arguably the buffer belongs in the loop scope because it is only relevant there. It’s probably also safer from wrong use.

This feels like exactly what you want the compiler to think about: a case where optimization comes at the cost of organization.




Organization is basically completely irrelevant for a small piece of code like this, which fits in your head all at once.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: