3 ms·
I'm a big fan of this kind of improved RAII. We implemented it in https://vale.dev/blog/raii-next-steps https://vale.dev/blog/raii-next-steps, you might find it
by verdagon 6y ago
I'm a big fan of this kind of improved RAII. We implemented it in https://vale.dev/blog/raii-next-steps https://vale.dev/blog/raii-next-steps, you might find it interesting!
- nyanpasu64 6y agoRead the blog, found it somewhat interesting. Prohibiting destructors and only allowing consuming methods is certainly easier when you don't have an exception system. Bidirectional pointers is definitely something it does better than Rust. Constraint references are an interesting idea. Clasps remind me of some Qt objects automatically detaching other objects listening to them, when destroyed (eg. QSortFilterProxyModel's source model, referenced by QSortFilterProxyModel, referenced by QAbstractItemView), but it feels ad-hoc for every individual type, and I don't know if there's underlying principles that all Qt types follow. The descriptions of the language and others feel a bit crank-ish at times, I got lost a web of hyperlinks to various pages on the site and didn't read all of them, and apparently the language is not ready yet. I might check it out again when it's more complete.