align substring
and list-copy
with similar functions with start
and end
arguments #206
Labels
No labels
Batteries
Cleanup
Consent Docket
Environments
Foundations
Macrological Fascicle
Meta
Multiple proposals exist
Pie-in-the-sky ideas
Problems without solutions
Public Comment
Publications
Question
R6RS Compatibility
Resolution in draft
Specification exists
SRFI/RnRS spec exists
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: scheme/r7rs#206
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?
All the other subcollection-accessors (
string-copy
,vector-copy
,bytevector-copy
, and so on) take three forms:I propose that
substring
be amended to also support this usage, so either the last argument or both can be left off.Agreed.
substring
can become a binding alias ofstring-copy
without issue.note that I don't mention
list-copy
here. abstractly, it might be fine to give itstart
andend
too, but I think – given there's no efficient implementation for that – that's probably not a good idea ;)It is as efficient as
list-copy
withoutstart
andend
.Yes. There are times when you need it, and for short lists, the performance will be immaterial in many situations. We should include it.
[feature request] alignto alignsubstring
with all other similar functions by making thestart
andend
argument optional.substring
andlist-copy
with similar functions withstart
andend
argumentsThe one-argument version will make less sense if “newly allocated” is ever dropped from the spec, but the
(substring string start)
version will always be nice to have.