Skip to content

Support long immutable tables #1479

@Marco-Sulla

Description

@Marco-Sulla

From version 1.0, inline tables are immutable. So if you want to create an immutable table, the table can't be too much long, since actually inline tables doesn't allow newlines and trailing commas.

You can implement long immutable tables:

  1. allowing newlines and trailing comma also in inline tables.
    pro: consistency with normal tables
    con: the table will be no more "inline", so in theory you should rename them

  2. Make it possible to create immutable "normal" tables.
    The problem is: how? Magic comment? Magic assignement, like my_table = immutable?
    Maybe with [mytable immutable=true]? Is this a Pandora vase?

  3. Something completely different. Let's bike.

Metadata

Metadata

Assignees

No one assigned

    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