Skip to content

Idea: ArgGroup via records #391

@gavr123456789

Description

@gavr123456789

First we need some way to fastly construct objects without type decl, probably tuples

params = @(x: 0 y: 0)

Then we need to be able to past this one arg, as many actual args of a function

params = @(x: 0 y: 0)

type Point x: Int y: Int

Point ...params
// or maybe
Point :params

Or combine usual args and these thing

Card x: Int y: Int color: String

position = @(x: 0 y: 0)
c1 = Card :position color: "Red" 
c2 = Card :position color: "Blue"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions