Change slice syntax in template module #84
Labels
No labels
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 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heartles/fediglam#84
Loading…
Reference in a new issue
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?
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.