News for hackers. Stuff that matters.
Re:Higher RAII and the seven arcane uses of linear types by two_handfuls on Wednesday May 15, 2024 @11:14AM (#40368043)
I see, so in that second case it’s a runtime check rather that a static check. That makes sense.
Re:Higher RAII and the seven arcane uses of linear types by lmm on Thursday May 16, 2024 @11:21PM (#40386048)
Depends on the rest of your type system. If your language is capable of tracking whether a list is empty then it can allow dropping empty lists without a runtime check.