Slices #13

Closed
opened 2025-08-17 13:21:03 +00:00 by ed · 2 comments
Owner

The language should define a way to create arbitrary slices by supplying ptr and len fields.
Currently the only way to create slices is predefined string literals.

The language should define a way to create arbitrary slices by supplying `ptr` and `len` fields. Currently the only way to create slices is predefined string literals.
ed self-assigned this 2025-08-17 13:21:09 +00:00

Just noting that this is a point where you choose a semantic direction for the language. Alas C or Go.

Watching closely.

Just noting that this is a point where you choose a semantic direction for the language. Alas C or Go. Watching closely.
Author
Owner
Added in https://git.urbach.dev/cli/q/commit/14e3316eecedd147cc2aeb07c9418ef3c4574730. Test: https://git.urbach.dev/cli/q/src/commit/14e3316eecedd147cc2aeb07c9418ef3c4574730/tests/slice.q Example: https://git.urbach.dev/cli/q/src/commit/14e3316eecedd147cc2aeb07c9418ef3c4574730/examples/echo/echo.q
ed closed this issue 2025-08-18 11:47:41 +00:00
ed added spent time 2025-09-06 10:13:49 +00:00
2 hours
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 2 hours
ed
2 hours
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
cli/q#13
No description provided.