logoalt Hacker News

j16sdizlast Monday at 7:47 AM1 replyview on HN

It need new annotations. (see the paragraph under "Comment-Based Syntax")


Replies

hmrylast Monday at 8:20 AM

The article doesn't show any function lifetime annotations, only @safe and @unsafe.

Functions need annotations like "return value lives as long as argument 1" or "return value lives as long as both arguments are alive"

show 1 reply