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

nesting proposal : push / pop #899

Closed
lizelive opened this issue May 4, 2022 · 3 comments
Closed

nesting proposal : push / pop #899

lizelive opened this issue May 4, 2022 · 3 comments

Comments

@lizelive
Copy link

lizelive commented May 4, 2022

<< pops to top level
trailing >> (or maybe . ) means strong and forces future tags to nest
leading . makes week and nests under last non-weak
[stuff] is defined in context

[<<creature.crow>>]
    color = "black"
    [name]
        singular = "crow"
        plural = "crows"
        adjective = "crow"
    [body_detail_plan]
    standard_materials.remove_material = ['hair']
        [.vertebrate_tissue_layers]
            skin = 'skin'
            fat = 'fat'
            muscle = 'muscle'
            bone = 'bone'
            cartilage = 'cartilage'
[<<variation.standard_quadruped_gaits>>]
    args = ["walk", "trot" ]
    [cv_new_tag.gait.walk.]
        [walk]
            full_speed = "!walk"
            [.no_build_up]
            energy_use = 0
        [trot]
            full_speed = "!trot"
            energy_use = 0
            [.no_build_up]
            [.layers_slow]
            [.strength]
            [.agility]
            [.stealth_slows]
                percentage = 10

can be awkward when you want to go up but not to topmos
could do it so matching number of < will bring you to > with same number

@lizelive
Copy link
Author

lizelive commented May 4, 2022

don't like as much as #898 but figured i should share

@pradyunsg
Copy link
Member

Hi! Please see #781 which discusses the broader topic here.

@eksortso
Copy link
Contributor

eksortso commented May 4, 2022

@lizelive It appears that you're proposing to change the basic [table] syntax so that table on its own is no longer an absolute path to a table. That essentially upends the entirety of TOML's organizational syntax. I'm sorry, but this is too radical a change.

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

3 participants