|
|
|
|
|
by Tyr42
4006 days ago
|
|
I feel like the explicit lifetime annotations just move the invariants from the comments to the code. So I feel like it's a good thing to make explicit. I could be wrong as projects get larger though. Though I do feel a bit let out after reading http://cglab.ca/~abeinges/blah/turpl/_book/vec.html
which implements Vec from scratch, as it's not super simple. But really, that would be impossible in Go, just as tricky in C++ (if you make it stl compatible), and impossible in implement generically without lots of void* stuff in C, so I guess I wasn't sure what I was expecting. It's a pain to implement fundamental data-structures I guess. Still, if you've got anything new to say, go ahead and say it. |
|