File format #2
Labels
No Label
2d
3d
bug
discussion
feature
high priority
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wanp/townengine#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
API I more or less settled on:
Edit: API only exposes associative array semantics, simplifying the usage. Array optimization is internal.
Edit: Push none as a way to erase elements.
Edit: Pushes are either by index or key, always explicit.
Thinking about it, it's too complex, with no real reason to have this complexity.
Alternative approach would be having something like JSON pointer spec path-based queries and write operations.
It makes sense, as this file format is designed for other file formats with obvious before-hand layout.
Example of usage, in Python:
C API appropriate for idea above: