3 ms·
Seems that everybody is talking about files. :-) Open, operate, close. I think the author tries to bring us more, mathematically. Like a matrix operation: Move
by v-yadli 15y ago
Seems that everybody is talking about files. :-)
Open, operate, close.
I think the author tries to bring us more, mathematically.
Like a matrix operation:
Move to origin, rotate, move back.
But this is a lot harder than just "resource guard", imo.
Any ideas?
- morsch 15y agoExactly. So far I'm kind of disappointed by the HN debate, it seems like many people only read half the article and are then quick to point out that their own favorite language has a way to release resources when done. I liked the sum under square better than the read under open example (although the latter may be more relatable). Sum under square squares items, sums them up, and then performs the "inverse-square" operation on the sum. I don't think this is similar to using X or RAII in C++.