Discuss Scratch
- Discussion Forums
- » Suggestions
- » add "i" to operators
- fdreerf
-
1000+ posts
add "i" to operators
What if I did this though?
change x by (i ::operators)Would nothing happen or Scratch freak out that it's trying to move something by a non-integer number?
Last edited by fdreerf (April 9, 2020 02:35:51)
- PkmnQ
-
1000+ posts
add "i" to operators
What if I did this though?change x by (i ::operators)Would nothing happen or Scratch freak out that it's trying to move something by a non-integer number?
A weird idea could be that it changes y by 1.
- Jonathan50
-
1000+ posts
add "i" to operators
That's a domain error, not unlike What if I did this though?change x by (i ::operators)Would nothing happen or Scratch freak out that it's trying to move something by a non-integer number?
change x by (join [hello ] [world])so as long as Scratch ignores domain errors nothing would happen.
- PkmnQ
-
1000+ posts
add "i" to operators
Oh yeah, forgot about strings.That's a domain error, not unlike What if I did this though?change x by (i ::operators)Would nothing happen or Scratch freak out that it's trying to move something by a non-integer number?change x by (join [hello ] [world])so as long as Scratch ignores domain errors nothing would happen.
I was thinking
“Oh no there's no domain error reaction, unlike the repeat block which uses positive and just ignores negative aaaaaaa”
but yeah strings exist
- minor-edit
-
500+ posts
add "i" to operators
earlier topic Make square roots on negitave Numbers exist but closed
- Paddle2See
-
1000+ posts
add "i" to operators
Make square roots on negitave Numbers exist but closedHey, thanks for finding that link! That topic is closed because this idea is rejected as being out of scope for basic Scratch. I can maybe see it as an extension for advanced users. earlier topic
- Discussion Forums
- » Suggestions
-
» add "i" to operators