Change slice syntax in template module #84

Open
opened 2022-12-14 08:48:07 +00:00 by heartles · 1 comment
Owner

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's arr[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 later

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's `arr[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 later
heartles added the
web
label 2022-12-14 08:48:07 +00:00
Author
Owner

Alright 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.

Alright 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.
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#84
No description provided.