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

TABLE: Current and previous block pointer #930

Closed
byehack opened this issue Oct 29, 2022 · 3 comments
Closed

TABLE: Current and previous block pointer #930

byehack opened this issue Oct 29, 2022 · 3 comments

Comments

@byehack
Copy link

byehack commented Oct 29, 2022

This is basic idea, need to have more discussion.

OLD

[[fruits]]
name = "apple"

[fruits.physical]  # subtable
color = "red"
shape = "round"

[[fruits.varieties]]  # nested array of tables
name = "red delicious"

[[fruits.varieties]]
name = "granny smith"


[[fruits]]
name = "banana"

[[fruits.varieties]]
name = "plantain"

NEW

  • + : Duplicating last table name.
  • ^ : Goes back one block.
[[fruits]]
name = "apple"

[^.physical]  # subtable
color = "red"
shape = "round"

[[^.varieties]]  # nested array of tables
name = "red delicious"

[[+]]
name = "granny smith"


[[^]]
name = "banana"

[[^.varieties]]
name = "plantain"

Json:

{
  "fruits": [
    {
      "name": "apple",
      "physical": {
        "color": "red",
        "shape": "round"
      },
      "varieties": [
        { "name": "red delicious" },
        { "name": "granny smith" }
      ]
    },
    {
      "name": "banana",
      "varieties": [
        { "name": "plantain" }
      ]
    }
  ]
}
@byehack byehack changed the title Previous block pointer Current and previous block pointer Oct 29, 2022
@byehack byehack changed the title Current and previous block pointer TABLE: Current and previous block pointer Oct 29, 2022
@arp242
Copy link
Contributor

arp242 commented Oct 29, 2022

Previous: #744, #781

@byehack
Copy link
Author

byehack commented Oct 29, 2022

Oh, right. Sorry for my duplicate request.

@byehack byehack closed this as completed Oct 29, 2022
@arp242
Copy link
Contributor

arp242 commented Oct 30, 2022

No worries; can be difficult to find these things sometimes.

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

2 participants