Template: Make optional unwraps expressions #81

Closed
opened 2022-12-13 09:35:08 +00:00 by heartles · 3 comments
Owner

Right now they're only supported for variable dereferences, they should be an expression that can work on other expressions

Right now they're only supported for variable dereferences, they should be an expression that can work on other expressions
heartles added the
web
label 2022-12-13 09:35:08 +00:00
Author
Owner

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

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
Author
Owner

Okay I like the solution i hit where null unwraps just return an error rather than start a runtime panic. closing this.

Okay I like the solution i hit where null unwraps just return an error rather than start a runtime panic. closing this.
Author
Owner

ended up implementing this anyway lol. kept the behavior of unwraps causing an error instead of a panic tho

ended up implementing this anyway lol. kept the behavior of unwraps causing an error instead of a panic tho
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: heartles/fediglam#81
No description provided.