Discuss Scratch

fdreerf
Scratcher
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
Scratcher
1000+ posts

add "i" to operators

fdreerf wrote:

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
Scratcher
1000+ posts

add "i" to operators

fdreerf wrote:

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?
That's a domain error, not unlike
change x by (join [hello ] [world])
so as long as Scratch ignores domain errors nothing would happen.
PkmnQ
Scratcher
1000+ posts

add "i" to operators

Jonathan50 wrote:

fdreerf wrote:

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?
That's a domain error, not unlike
change x by (join [hello ] [world])
so as long as Scratch ignores domain errors nothing would happen.
Oh yeah, forgot about strings.
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
chrdagos
Scratcher
500+ posts

add "i" to operators

bump
XretroperX
Scratcher
100+ posts

add "i" to operators

No support, I see no purpose.
minor-edit
Scratcher
500+ posts

add "i" to operators

chrdagos
Scratcher
500+ posts

add "i" to operators

bump
BUCKCLUCKFROMROBLOX
Scratcher
32 posts

add "i" to operators

its one letter long yet very complex.
Paddle2See
Scratch Team
1000+ posts

add "i" to operators

minor-edit wrote:

earlier topic Make square roots on negitave Numbers exist but closed
Hey, 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.

Powered by DjangoBB