Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode dryads in properties in json notation without sc.h #6

Closed
crucialfelix opened this issue Aug 18, 2016 · 0 comments
Closed

Encode dryads in properties in json notation without sc.h #6

crucialfelix opened this issue Aug 18, 2016 · 0 comments
Milestone

Comments

@crucialfelix
Copy link
Owner

This is for when you have a Dryad supplied as a property to another Dryad.

Currently in a hyperscript document there is no way to tell if it is supposed to be an array or a Dryad

[
  "synth",
  {
    "args": {
      "freq": ["lfo", {"freq": 20}],
      "pan": [-1, 1]
    }
  }
]

The freq should be interpreted as a Dryad; but the pan should be interpreted as an array. You could say that an array with [string, object, array] is a dryad and for the rare case where you needed to pass that as an actual array then escape it with:

['array', ['something', {}, []]]

or just don't worry about this rare case for now.

@crucialfelix crucialfelix added this to the 0.4 milestone Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant