Why the try keyword was removed? #2088
-
Hi @lpil, I am talking about the last release (0.27) where you said goodbye to try. As I understand, now with every use-then statement, the code gets split between the current function and the new inner function. In other words, every use-then, the matreshka of nested functions grows in size. Why do that, if this could be a simple case statement? At least this pollutes the stack trace. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hello! The reason is as you shared in the blog post there. Could you expand upon the problem you were having with nested functions? Thank you |
Beta Was this translation helpful? Give feedback.
-
Here I read in the blog:
Is it really so? Was the try keyword really adding a function every time it was used?
Well, it's better when the stack reflects real function calls, since it is printed on exceptions for example. And the stack is not infinite too. |
Beta Was this translation helpful? Give feedback.
Hello! The reason is as you shared in the blog post there. Could you expand upon the problem you were having with nested functions? Thank you