Conversation
@yosh Do you think that linearity should be a property of functions instead of types? Or would a linear fn mean that it returns a linear type?
0
0
0
@yosh Would it not make more sense to uphold the linearity at the type level (and then allow some (possible unsafe) escape hatch) than to have to as a property of functions. I think that would make more sense because then API developers could rely on the linearity of the types as a safety mechanism.

I am not even sure if the type async functions return has to be linear, a async function could contain linear types, but not need to be linear itself and thus could be dropped safely. Which I guess means that it could be used to model the cancellation safety of the async function.
0
0
0