Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In rust, this is y=x.lock(), and later drop(y) or just end the scope block.

Sugary syntax is always an issue when side effects matter.

Having said that, I adore procedural code in general, but it does make ownership a fun mental exercise.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: