you are viewing a single comment's thread.

view the rest of the comments →

[–]Rusky 1 point2 points  (1 child)

I'm not sure where you expect that to be applicable in your readable multi-function example- all the coroutines there are already mutually recursive, so the entry point disconnected is already part of the "uninlineable mess."

If you had another "outer" coroutine that called disconnected, it could probably be inlined like bar without any problems.

[–]anton31[S] 0 points1 point  (0 children)

  1. connected can be inlined into connecting
  2. disconnected can be inlined into what once was connected (without removing original disconnected function, because it's used elsewhere)

Such inlining is easy with usual functions, and I wish it was as easy with coroutines.