logoalt Hacker News

fuhsnnyesterday at 8:50 AM2 repliesview on HN

It's one of the most commonly adopted feature among C successor languages (D, Zig, Odin, C3, Hare, Jai); given how opinionated some of them are on these topics, I think it's safe to say it's generally well regarded in PL communities.


Replies

ZoomZoomZoomyesterday at 11:07 AM

In Nim too, although, the author doesn't like it much.

Ygg2yesterday at 9:18 AM

What I always hated about defer is that you can simply forget or place it in the wrong position. Destructors or linear types (must-use-once types) are a much better solution.