DEV Community

Lance Bachmeier
Lance Bachmeier

Posted on

3 2

Ownership and Borrowing in D

New blog post by Walter Bright is up:

Ownership and Borrowing. It’s memory efficient, as performant as manual management, and mechanically auditable. It has been recently popularized by the Rust programming language. It has its downsides, too, in the form of a reputation for having to rethink how one composes algorithms and data structures.

While I welcome this addition (assuming it actually materializes) I think that last sentence understates the downsides. In my experience, it's just a lot more taxing to have to think about memory all the time. In terms of developer productivity, you can't beat garbage collection, and things like this are a last resort for the small amount of code that absolutely can't handle garbage collection.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay