
May 18, 2022
7:23 p.m.
18.05.22 22:08, Nadav Misgav пише:
I was thinking of a way to expand the current try-expect block to support condinitial expect block. I was imagining the new syntax as
try: expression block expect Exception if condition expression block
where the expect expression block would only run if the condition is met else it would raise the exception, for example the following code
You already can do this! try: expression block expect Exception if condition else (): expression block