Discuss Scratch

ScolderCreations
Scratcher
1000+ posts

TextVariables

gilbert_given_189 wrote:

I think a custom reporter will be better:
say (formatted text [something {foo} {bar}] :: operators)
that's way too confusing

imfh
Scratcher
1000+ posts

TextVariables

gilbert_given_189 wrote:

I think a custom reporter will be better:
say (formatted text [something {foo} {bar}] :: operators)
I agree, that way you don’t have to worry about confusion when someone tries to use the { } brackets but doesn’t know about the formatting. It would also help prevent a potentially major performance decrease caused by parsing every single text input each and every time they are used. Note that the comparison operators ( <=> ) have text inputs, so quite a lot of extra parsing would be done.

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
mybearworld
Scratcher
1000+ posts

TextVariables

gilbert_given_189 wrote:

I think a custom reporter will be better:
say (formatted text [something {foo} {bar}] :: operators)
Python implements f-strings like this too:
print(f"{foo} {bar}")

Signatures are the only place where assets links still work.
dertermenter
Scratcher
1000+ posts

TextVariables

I just think all code in scratch should be blocked based - and it’s inconsistent to have just 1 feature that is text based. This also defeats the purpose of the join block.


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
mybearworld
Scratcher
1000+ posts

TextVariables

dertermenter wrote:

This also defeats the purpose of the join block
join ((1)+(foo)) ((bar)+(2))

Signatures are the only place where assets links still work.
dertermenter
Scratcher
1000+ posts

TextVariables

mybearworld wrote:

dertermenter wrote:

This also defeats the purpose of the join block
join ((1)+(foo)) ((bar)+(2))
I don’t get your point


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
imfh
Scratcher
1000+ posts

TextVariables

dertermenter wrote:

mybearworld wrote:

dertermenter wrote:

This also defeats the purpose of the join block
join ((1)+(foo)) ((bar)+(2))
I don’t get your point
The formatting only works with variables; it doesn’t work if you want to use a variable + 1 or something.

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/

Powered by DjangoBB