Skip to content

+decorate meta to enable auto-decoration of all objects #3731

@yegor256

Description

@yegor256

Now, I do this:

[] > foo
  join.
    QQ.txt.text ","
    split.
      QQ.txt.text
        "hello jeff"

Looks rather verbose, since I have to decorate string with QQ.txt.text every time I use it. How about this sugar instead:

+decorate QQ.string ~> QQ.txt.text

[] > foo
  join.
    ","
    split.
      "hello jeff"

Or simply this:

+decorate string ~> QQ.txt.text

This meta means: "every object of the string forma must be automatically decorated with QQ.txt.text"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions