News for hackers. Stuff that matters.
Re:Deconstructing K&R C (2010) by Certhas on Sunday January 04, 2015 @06:27AM (#8834123)
Doesn't Rusts linear type system ensure the latter?
Re:Deconstructing K&R C (2010) by arielb1 on Sunday January 04, 2015 @08:13AM (#8834306)
Functional languages, along with Rust's linear type-system, can ensure this for single-ownership structures (trees, singly-linked lists), but not for structures with more complex ownership, like doubly-linked lists. The unpopular languages I was talking about were Agda and friends.
Re:Deconstructing K&R C (2010) by pcwalton on Sunday January 04, 2015 @12:18PM (#8835046)
To be clear, though, Rust's type system can ensure thread safety of doubly-linked lists if you use the doubly-linked list structure in the standard library (or write one yourself using RC/etc.)
Re:Deconstructing K&R C (2010) by chongli on Sunday January 04, 2015 @07:51AM (#8834264)
But is Rust a popular language? Weasel words strike again!
Re:Deconstructing K&R C (2010) by steveklabnik on Monday January 05, 2015 @11:55AM (#8839703)
We technically have affine types, not linear.