Replies: 1 comment 4 replies
-
|
This would make the parser more complicated and would make error detection messier, how would you tell if: func foo():
var bar := 0Is meant to be: func foo():
pass
var bar := 0And shouldn't error, or if it should have been: func foo():
var bar := 0(sure in this example the code is not very useful but getting no error here would be confusing, or getting an incorrect error if there already is a Adding |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quite often necessity to use
passafter empty function feels rudimental. It is just unnecessary keystrokes we need to type when tweaking/debugging things. Commenting function is not ideal either because code requiring that function will alarm in response. Can we just get rid of it in compiler? Like make it force usepassin background if another function or EOF found?Beta Was this translation helpful? Give feedback.
All reactions