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

Consider to simplify indexed offsets syntax #642

Open
mikir opened this issue Jun 21, 2024 · 1 comment
Open

Consider to simplify indexed offsets syntax #642

mikir opened this issue Jun 21, 2024 · 1 comment
Labels
core Zserio core module enhancement New feature or request
Milestone

Comments

@mikir
Copy link
Contributor

mikir commented Jun 21, 2024

Currently, the indexed offsets have the following syntax:

struct Schema
{
    offset myOffsetArray[];
    uint8 someValue;
myOffsetArray[@index]:
    string stringArray[];
};

Because offset expressions will be disabled (#641), we can think to introduce simplified indexed offsets:

struct Schema
{
    offset myOffsetArray[];
    uint8 someValue;
myOffsetArray[]:
    string stringArray[];
};

However, the old syntax should be still valid because of the backward compatibility.

For more info, please have a look to the issue #640.

@mikir mikir added enhancement New feature or request core Zserio core module labels Jun 21, 2024
@mikir mikir added this to the 2.15 milestone Jun 21, 2024
@mikir
Copy link
Contributor Author

mikir commented Aug 12, 2024

Seems to be not urgent. Therefore, it has been moved to the backlog to save effort.

@mikir mikir modified the milestones: 2.15, Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Zserio core module enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant