Discuss Scratch

KittyFireSt0rm
Scratcher
1000+ posts

"Delete all occurrences of" block

bump
MeowyTitan08
Scratcher
1000+ posts

"Delete all occurrences of" block

I don't know if I'd ever need that block, maybe in the future sometime, but I'm the situation you're in it would be really useful. Heck, I'd die if I had to delete something from sixty lists!
KittyFireSt0rm
Scratcher
1000+ posts

"Delete all occurrences of" block

bump

Last edited by KittyFireSt0rm (Sept. 1, 2020 17:14:56)

Bluebatstar
Scratcher
1000+ posts

"Delete all occurrences of" block

Have I already posted on this? I don't think so.
delete all occurences of [] :: list // This is about this block in particular.
No Support for the reasons a lot of other people aren't supporting.
The block would just be too situational to warrant it's inclusion. Yes, you would like it for your project. But a very, very small percentage of projects would want that block. It would have very few uses and barely anybody would use it. If a block were to get added in, it would have to be useful to a large amount of projects, and the block would have to be useful in a large variety of ways. This block clearly isn't.

As for this block:
delete all occurences of [] in [ v]:: list
It would be more useful than the above block, and more people would use it. If this block got added in, then a workaround for the above block would be trivial. (I recommend making the suggestion more about this block, to be honest). I'm sure people would find ways to use it, but I'd like to hear some of those ways before I support it.
KittyFireSt0rm
Scratcher
1000+ posts

"Delete all occurrences of" block

Bluebatstar wrote:

-snip-
Thanks for your opinion!
TopicBumper
New Scratcher
100+ posts

"Delete all occurrences of" block

Bump.
the2000
Scratcher
1000+ posts

"Delete all occurrences of" block

I personally think that the workaround is efficient enough, but I guess it wouldn't hurt to add this block. I don't recall there being a JavaScript equivalent to this, but maybe there is, and I also realize that having a JS equivalent does not necessarily mean that a block should or shouldn't exist. I see the applications but I'm not fully convinced that this block should be added.
k0d3rrr
Scratcher
1000+ posts

"Delete all occurrences of" block

Note: I got taken to this topic because of a glitch with the “Last post” text.
I think this is a good suggestion for a block because although there is a workaround, some people might not know it. Correct me if I'm wrong.

This would also be a good block because you might want to get rid of a specific item, and not all of them, or some of them in all, or some lists.

In conclusion, I think adding this block would help with games that need this block.

And I know this topic hasn't been active for at least a year, but here are some ideas for what might be in the block's dropdown:

delete all occurrences of [] in [list v]:: list
delete all occurrences of [] in [all lists v]:: list

Also, bump.

Powered by DjangoBB