Skip to content

object slice #77

Description

@satyr

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions