Jeff
05/21/2021, 6:40 PMsuspend
to signal side-effecty functions. When I do this my IDE gives me helpful hints saying I don’t need the suspend
keyword since I don’t call any suspend functions. Is there a typical solution for this? Do I just suppress / annotate it away?raulraja
05/21/2021, 7:29 PMprintln
or file io
as needing suspension but in whatever case I found that most of those functions should instead be inline. If they are inline they work both in pure contexts but also in suspended ones where their body get fully inlined in the caller site. There is already in the scope of a continuation and can properly handle errors in the effect that are thrown.raulraja
05/21/2021, 7:30 PMJeff
05/21/2021, 7:38 PMstojan
05/21/2021, 9:12 PM