Closed Wolvereness closed 3 years ago
Addendum suggestions:
Using gotos is always an excellent way to shoot yourself in the foot. These things are error-prone, unreadable and bad style in general.
Instead of improving goto-math I would rather like to completely get rid of user-crafted goto-math. I am thinking of if-statements beeing automatically compiled to goto-math wen reasonable, or just a justom syntax-feature for jump-tables ( for example #102 ).
That would prevent stupid mistakes from the start, make code readable and help people that are not even aware of how goto-math can be used as an alternative to ifs.
So, I had some time to think about this. There will be no such assertions. Goto-math is dangerous and if the user insists on using it, he will have to accept the risk.
Is your feature request related to a problem? Please describe. Working with goto-math is dangerous
Describe the solution you'd like An assert expression applied at compile-time, and will raise an error if the expression is false. This expression is only functionally useful for Line-Labels.
For example:
Describe alternatives you've considered Using names multiplied by truthiness is always correct, but more verbose
Additional context
107