Scratch-blocks: Predicates and string reporters can't be placed in number inputs

Created on 15 Jun 2016  路  8Comments  路  Source: LLK/scratch-blocks

If I try to drag a predicate block or a reporter that reports a string into a number input, it just jumps back.

design

Most helpful comment

Oh, and these conditional operators have been appearing a lot too.
scratchblocks 1

All 8 comments

Thanks for raising this. In order to get this right, I think we have to do some refactoring of render code to separate type-checking from reporter-shaping. We're also still considering some things - like whether string reporters should have squared-off edges or not - and we'll probably wait to fix this until we resolve a final design for shape, color, and compatibility of all types of inputs @carljbowman.

Out of curiosity, what's the use case for dragging a string into a number input?

This is a contrived example and I'm sure there are many better ones, but:
screen shot 2016-06-15 at 3 55 42 pm

Yup, the reporter that reports a string makes perfect sense, given scratch's type system. It's the other case I'm thinking about.

Meant to ask: when would you drag a predicate block into a number input.

another contrived example :)
screen shot 2016-06-15 at 5 20 16 pm

Oh, and these conditional operators have been appearing a lot too.
scratchblocks 1

I believe this has been fixed :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rachel-fenichel picture rachel-fenichel  路  4Comments

tmickel picture tmickel  路  3Comments

towerofnix picture towerofnix  路  5Comments

Alzter picture Alzter  路  3Comments

picklesrus picture picklesrus  路  3Comments