Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
infogulch
· 4y ago · 0 comments
Insofar as they don't bundle a runtime (unlike the languages mentioned by GP), yes. But they don't really offer much above C in the area of resource tracking / safety that rust's novel ownership+lifetimes system provides.
Comments
[–]
floatboth
4y ago
Heh, there were plans to add ownership&borrowing to D:
https://dlang.org/blog/2019/07/15/ownership-and-borrowing-in...
but of course bolting something on as an option is not the same as having the whole language designed strictly around it.
[–]
dralley
4y ago
I would say "defer" and "errdefer" do offer
a lot
compared to C, but you're right that it's not comparable with the resource tracking in Rust.