Change slice syntax in template module #84
Labels
No Label
backend
beginner-friendly
bug
build
db
endpoint
federation
http
low-priority
tests
waiting for zig 0.11
web
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: heartles/fediglam#84
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
I'm not a huge fan of using the
@slice(arr, start, end)
syntax for slicing iterables in the template module. However, fixing it to work more like zig'sarr[start..end]
syntax means some refactoring of how expressions are parsed, and initial attempts to do so caused segfaults in the compiler. maybe consider fixing this laterAlright I managed to sidestep the compilation errors but supporting
arr[start..end]
would require changing the argument syntax from.arg
to... idk. something else. Which I've thought about doing but haven't decided on yet.