Draco-lang / Language-suggestions

Collecting ideas for a new .NET language that could replace C#
75 stars 5 forks source link

RFC0003 - Unconditional jumps are expressions, unreachable type #77

Closed LPeter1997 closed 2 years ago

LPeter1997 commented 2 years ago

This RFC modifies the unconditional jump statements to be expressions. This is to aid situations where the expression is terminated early without needing to wrap the return/goto/throw statements into an expression block with phony values.