digitalmars.D - Is there an equivalent of Rust owned pointer in D?
- Elvis (2/2) Aug 05 2013 Owned pointer in Rust is a good design IMO, how about D
- Nick Treleaven (3/5) Aug 06 2013 I think this is about the closest ATM:
- Ruslan Mullakhmetov (5/10) Aug 09 2013 would be good to have it as language feature like scoped
- Tobias Pankrath (7/18) Aug 09 2013 While I'm convinced that unique pointers / types are a important
- Ruslan Mullakhmetov (3/23) Aug 09 2013 No, I didn't assert that. I just proposed a synthetic sugar =).
Owned pointer in Rust is a good design IMO, how about D equivalent?
Aug 05 2013
On 06/08/2013 06:26, Elvis wrote:Owned pointer in Rust is a good design IMO, how about D equivalent?I think this is about the closest ATM:
Aug 06 2013
On Tuesday, 6 August 2013 at 16:32:43 UTC, Nick Treleaven wrote:On 06/08/2013 06:26, Elvis wrote:would be good to have it as language feature like scoped reference. this clear code (as from c++11 experience abundant std::unique_ptr<T> get me irritated). And of course unique idiom (ownership) get D usable for realtime (removed GC)Owned pointer in Rust is a good design IMO, how about D equivalent?I think this is about the closest ATM:
Aug 09 2013
On Friday, 9 August 2013 at 18:16:57 UTC, Ruslan Mullakhmetov wrote:On Tuesday, 6 August 2013 at 16:32:43 UTC, Nick Treleaven wrote:While I'm convinced that unique pointers / types are a important concept, especially if combined with immutable. (What's transitive unique/immutable can be cast to immutable .. ), I don't think that just adding a new type modifier will lead D anywhere.On 06/08/2013 06:26, Elvis wrote:would be good to have it as language feature like scoped reference. this clear code (as from c++11 experience abundant std::unique_ptr<T> get me irritated). And of course unique idiom (ownership) get D usable for realtime (removed GC)Owned pointer in Rust is a good design IMO, how about D equivalent?I think this is about the closest ATM:
Aug 09 2013
On Friday, 9 August 2013 at 19:05:26 UTC, Tobias Pankrath wrote:On Friday, 9 August 2013 at 18:16:57 UTC, Ruslan Mullakhmetov wrote:No, I didn't assert that. I just proposed a synthetic sugar =). Unique pointer/types are already in D (at the library level).On Tuesday, 6 August 2013 at 16:32:43 UTC, Nick Treleaven wrote:While I'm convinced that unique pointers / types are a important concept, especially if combined with immutable. (What's transitive unique/immutable can be cast to immutable .. ), I don't think that just adding a new type modifier will lead D anywhere.On 06/08/2013 06:26, Elvis wrote:would be good to have it as language feature like scoped reference. this clear code (as from c++11 experience abundant std::unique_ptr<T> get me irritated). And of course unique idiom (ownership) get D usable for realtime (removed GC)Owned pointer in Rust is a good design IMO, how about D equivalent?I think this is about the closest ATM:
Aug 09 2013