Template: Make optional unwraps expressions #81
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#81
Loading…
Add table
Add a link
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?
Right now they're only supported for variable dereferences, they should be an expression that can work on other expressions
alternatively, maybe just scrap it. In hindsight it was kind of a stupid thing to add to the template system. an orelse operator would be nice tho
Okay I like the solution i hit where null unwraps just return an error rather than start a runtime panic. closing this.
ended up implementing this anyway lol. kept the behavior of unwraps causing an error instead of a panic tho