Lexpedite / blawx

A user-friendly web-based tool for Rules as Code.
MIT License
100 stars 9 forks source link

Change block design for overrules blocks #460

Open Gauntlet173 opened 1 year ago

Gauntlet173 commented 1 year ago

Overrules is currently the only statement-style block that actually generates a rule in the code. This creates a situation in which it is possible for it to be used in places that it ought not be.

There are a few options:

  1. Leave it, its fine.
  2. Change overrules to an outer block, but that would make it the only non-purple outer block, which violates a pattern.
  3. Change overrules to only connect to outer blocks, and get rid of its bottom connector. This doesn't completely solve the problem because you could still put it in the conclusion of a rule, for example, but you wouldn't be able to stack it with things. It would also make it the only statement block without a bottom connector.
  4. Change overrules to only connect to outer blocks, and set its bottom connector to connect to nothing. But a bottom connector that never actually works violates a pattern, too.

There may be other options, too.