Skip to content

SHOW() vs. yield/return #5

@cben

Description

@cben

I think a side-effect SHOW() api may be better than yield/return?

  • Can't mix yield/return syntax (which must be evaluated as a function) with import syntax (which needs a script type=module).
  • Is it a bit weird to represent the app's main UI as execution side effect? return felt more natural.
  • OTOH, it'll unlock rendering stuff from deep inside functions, forEach loops etc. Currently can yield from top-level but only console.log works deeper.
    • Would need a way to group/collapse to scale (cf. projection boxes). Challenge: it's limiting to make projections an "IDE" feature, can they be implemented in userland?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions