Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
853 stars 252 forks source link

variable problem #1111

Closed ziarlock closed 1 month ago

ziarlock commented 1 month ago

Describe the bug Steps to reproduce the behavior: I need to create a variable with underscore(_), but I can’t do this, although according to Java rules it can be done

Expected behavior fix please

Screenshots Screenshot_20240322_052140_Sketchware Pro

Sketchware Pro-related info:

JavkhlanK commented 1 month ago

I'm 100 % this is the same in vanilla Sketchware. It's probably like that to not have name conflicts with e.g. MoreBlock parameters or some Blocks' code (even though this.… could've been used instead). I'd not classify this as a bug, just don't use variables with such a name. That's not even a good coding style in Java.