How come Go doesn't have stackoverflows

后端 未结 5 2075
野的像风
野的像风 2021-02-01 19:51

I read in this presentation http://golang.org/doc/ExpressivenessOfGo.pdf page 42:

Safe

- no stack overflows

Ho

5条回答
  •  庸人自扰
    2021-02-01 20:06

    I don't think they can "totally" avoid stack overflows. They provide a way to prevent the most typical programming-related errors to produce a stack overflow.

    When the memory finishes there is no way to prevent a stack overflow.

提交回复
热议问题