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

object slice #77

Closed
satyr opened this issue Aug 8, 2011 · 0 comments
Closed

object slice #77

satyr opened this issue Aug 8, 2011 · 0 comments
Milestone

Comments

@satyr
Copy link
Owner

satyr commented Aug 8, 2011

o.{a:b, c}{a: o.b, c: o.c}

This will:

  • enable partial copy/import, e.g. import Array::{push, forEach}.
  • mirror array slice (a[x, y][a[x], a[y]]) and object subdestructuring (p{a:b, c} = q{a: p.b, c: p.c} = q), improving semantic consistency.

For applying ADI (o{a}; o?{b}o.{a}; o?.{b}), the clone syntax (p = Point{x: 7, y: 8}) needs to change; probably to unary ^ (p = ^Point <<< x: 7, y: 8).

@satyr satyr closed this as completed in 8248a0f Aug 10, 2011
josher19 pushed a commit to josher19/LiveScript that referenced this issue Jul 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant