steamstreet
02/22/2024, 12:09 AMsuspend
is a mess, and makes for extremely difficult to maintain code. At this point I'm considering it a best practice to mark ALL functions as suspending, because failing to do so means that at some future point, when we have to make a function suspending, we have a mess of cascading changes. Has anyone else been dealing with this?steamstreet
02/22/2024, 12:10 AMthrows
clauses, but we end up with the same thing. If we define an interface, we HAVE to make it suspending because we don't know what implementation might exist that would require it.steamstreet
02/22/2024, 12:11 AMsteamstreet
02/22/2024, 12:16 AMsteamstreet
02/22/2024, 12:18 AMJeff Lockhart
02/22/2024, 2:25 AMJeff Lockhart
02/22/2024, 2:48 AMsteamstreet
02/22/2024, 2:51 AMJeff Lockhart
02/22/2024, 3:04 AMinline
function. But it would be nice if there was a language feature that supported this context inference.v79
02/22/2024, 5:46 AMJilles van Gurp
02/22/2024, 8:48 AMDmitry Khalanskiy [JB]
02/22/2024, 10:04 AMsuspend
functions don't pollute the whole codebase. @steamstreet, if you have examples of the contrary that weren't discussed in that thread, please share them so that we can better support your usage patterns.kevin.cianfarini
02/22/2024, 9:09 PM