он пишет:
                  
                  
                  "There is one more corner case to consider here. It’s now
                  
                  
                  possible for resume to overflow the stack if the left-leaning
                  
                  
                  tower of FlatMaps is taller than the call stack. Then the
                  
                  
                  call f(v) will make the call g(x), which will make another
                  
                  
                  inner call, etc."
                  
                  
                  Но я никак не могу увидеть этот корнер кейс. Выглядит так как будто ничего не упадёт.
                  
                  
                  Кто-нибудь понимает точно о чем он?
                  
                  
                  Вот минимальный скасти:
                  
                  
                  https://scastie.scala-lang.org/MWVGoX30RX6zoUq8sXukIg
                  
                  
                
fa .flatMap(...) .flatMap(...) .flatMap(...) ....
Обсуждают сегодня