Open bwalter opened 5 years ago
Oh sweet Jesus, Just when I thought the language couldn't get any worse :joy: I don't maintain spaghetti too much but I could try adding this in someday xD
This method makes a lot more sense than the current syntax spaghetti supports. However, it would be best to keep the current label system for beginner spaghetti coders, and add this alongside the existing system.
When writing spaghetti code, I am always annoyed by the usage of labels. It adds a lot of overhead and would not be needed if the lines were numbered.
For standard labels, reserved/negative line number could be used.
Advantages:
To allow line insertions, it is recommended to use a step of 10 (10, 20, 30 instead of 1, 2, 3).
Example (based on factorial.spgh).
Instead of:
use: