Discuss Scratch
- Discussion Forums
- » Suggestions
- » Better Custom Blocks
- Hearst10
- Scratcher
100+ posts
Better Custom Blocks
we don't want scripts to run after that. plus, there is a very easy workaround if it is a cap block.a cap block is a block that scripts Other languages have it as a cap block, same as snap. Why not scratch?can not run after so it shouldnt be a cap block
look, i'll just quote, @bharvey (scratch username) (@bh in snap!), a snap! developer, from the snap forums:
-snip-Proof
When you report a value to your caller, your process is back in the caller, not running code in the procedure. Why would that be useful? You can't report a second time; your caller has already picked up your reported value and is running with it.
Last edited by Hearst10 (Jan. 29, 2021 14:52:10)
Moving from Scratch? Don't learn C or Java, try Snap!
- gosoccerboy5
- Scratcher
1000+ posts
Better Custom Blocks
Yeah, but the point of a return statement is that it returns an output, it returns to the original script. I think the main point of not being able to run scripts after a return statement is because that kind of function only serves a specific use and should not extend beyond that.a cap block is a block that scripts Other languages have it as a cap block, same as snap. Why not scratch?can not run after so it shouldnt be a cap block
- PATSATDAT
- Scratcher
1000+ posts
Better Custom Blocks
Its picked it up but we wont use the return block afterwardswe don't want scripts to run after that. plus, there is a very easy workaround if it is a cap block.a cap block is a block that scripts Other languages have it as a cap block, same as snap. Why not scratch?can not run after so it shouldnt be a cap block
look, i'll just quote, @bharvey (scratch username) (@bh in snap!), a snap! developer, from the snap forums:-snip-Proof
When you report a value to your caller, your process is back in the caller, not running code in the procedure. Why would that be useful? You can't report a second time; your caller has already picked up your reported value and is running with it.
return () ::custom
scripts that arent return blocks ::grey
- IndianRuby718
- Scratcher
100+ posts
Better Custom Blocks
… Wasn't this already rejected?what
I've seen older posts on other topics saying that 3.0 was going to have custom reporters! That's like the opposite of rejected–
I've found so many times I would've used this ever since seeing this topic..
One thing I came up with is doing something like this, for example:
set [variable v] to ((complex thing :: list) * (another complex thing :: list))Where both of these use the same temp. variable. If we had custom reporters, then the temp could be reused (I think so.. I could be wrong), while with any other way we'd need two temps.
Also, about what the cap block should say, I still think it should be “report”. “return value” also sounds interesting, though it would still be a lot better as a single word. “return” may be used in other programming languages, but I personally don't like the sound of it, and I think it would be a tad less confusing :P
But, this feature would be so intuitive to have; I've found myself wishing for custom reporters ever since seeing this topic. look: I have already said that there is an easy workaround.
Not for custom booleans though at least not yet
So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)
Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.
________________
Only fdreerf can break the equilibrium.
________________
I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.source
good luck digging up the original reply in the comments
ctrl+f exists
https://scratch.mit.edu/discuss/post/6961734/
Bug with the color effect I would really like to see fixed
EEEEEEE DDDDDD IIIIIIII TTTTTTTT NNN NN OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.
< :: extension>
< :: custom-arg>
< :: motion>
Don't click this link…
- AHypnoman
- Scratcher
1000+ posts
Better Custom Blocks
They're called predictates, and yes, We would have those as well.What about Boolean shapes? full support, only make it so that you can make hat, reporter, and stack block shapes
Just gonna link Wikipedia for those doubting the name
Last edited by AHypnoman (Feb. 3, 2021 09:02:53)
~ AHypnoman (Use Shift+Down Arrow to see the rest of my signature)
I am an evil kumquat, and your siggy looks tasty…
Hello there, I'm AHypnoman, If you write my name remember to capitalize the “H”. “When you don't create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create.” I write though as tho.
According to the Chrome Console, my viewbox attribute is “Garbage”. Very nice, Chrome.
#TrendyHashtag
Gib internneeet
Play Retorquebit!
- Rendangbike2
- Scratcher
1000+ posts
Better Custom Blocks
They're called booleans and let's not get offtopic.They're called predictates, and yes, We would have those as well.What about Boolean shapes? full support, only make it so that you can make hat, reporter, and stack block shapes
- Ankit_Anmol
- Scratcher
500+ posts
Better Custom Blocks
FULL SUPPORT
@Ankit_Anmol
Quality game developer on scratch
Please support this suggestion: https://scratch.mit.edu/discuss/topic/481580/
Thanks for your time!
set [Ankit_Anmol v] to [Genius v]
- 1132262
- Scratcher
1000+ posts
Better Custom Blocks
At this point asking people why they support just adds more posts. They rarely actually respond, and when they do, they give a reason that's been given many times before.Why? FULL SUPPORT
!!
- Hearst10
- Scratcher
100+ posts
Better Custom Blocks
no, they are predicates. people call them booleans because the return value is a boolean.They're called booleans and let's not get offtopic.They're called predictates, and yes, We would have those as well.What about Boolean shapes? full support, only make it so that you can make hat, reporter, and stack block shapes
i'll say “please be constructive” in the futureAt this point asking people why they support just adds more posts. They rarely actually respond, and when they do, they give a reason that's been given many times before.Why? FULL SUPPORT
Moving from Scratch? Don't learn C or Java, try Snap!
- Hearst10
- Scratcher
100+ posts
Better Custom Blocks
and what about c-blocks? (look, the c-shape is an full support, only make it so that you can make hat, reporter, and stack block shapesinput) to the block, not a type of block.)
also, please be constructive.
Last edited by Hearst10 (Feb. 3, 2021 14:12:37)
Moving from Scratch? Don't learn C or Java, try Snap!
- Rendangbike2
- Scratcher
1000+ posts
Better Custom Blocks
Can you please tell us why is it a great idea? Support, Great Idea!
- Redclopez
- Scratcher
19 posts
Better Custom Blocks
Support. I've been thinking about doing that too. I could use it like this
<[] < (num.) > []>
Last edited by Redclopez (Feb. 4, 2021 01:08:30)
when I start coding :: events :: hatHighlight this and press down arrow to see the rest of my signature.
set [Usename v] to [Redclopez]
open (pick random (new project :: sensing) or (old project :: sensing):: operators) :: control
forever
code (join (cool stuff) (games) (more)::operators) :: motion
end
Come check out some of my projects!
Ring | Rocket Trip | The Invisible Square |
☁Safe Online Chat☁ | Online test | Bird |
Thanks to -MagicAesthetics-
- Scratchperson1000000
- Scratcher
500+ posts
Better Custom Blocks
support
DJHNVLKJUDHFIUYHDLKUHDKLFJUYGDKJFGDHMFGMDBKJSDBCKSNICUNDCHICUGUYDSGFUHGADJFIEUGAFKJ