Opened 5 years ago

Closed 5 years ago

#325 closed defect (fixed)

Eliminate bytevector-copy!

Reported by: cowan Owned by: cowan
Priority: major Milestone:
Component: WG1 - Core Keywords:
Cc:

Description

(bytevector-copy! from to) is equivalent to (bytevector-copy-partial from 0 (bytevector-length) to 0). I don't see any reason to believe that this case is so special that it needs its own name.

I suggest that we remove the existing bytevector-copy! from the small language, and rename bytevector-copy-partial! to bytevector-copy!, with the order of arguments to at from start end, the same order used in SRFI 43's vector-copy!. Note that SRFI 43 will be part of the large language.

Change History (3)

comment:1 Changed 5 years ago by cowan

  • Status changed from new to decided

The WG voted to adopt this proposal.

comment:2 Changed 5 years ago by cowan

  • Owner changed from alexshinn to cowan
  • Status changed from decided to writing

comment:3 Changed 5 years ago by cowan

  • Resolution set to fixed
  • Status changed from writing to closed

To be clear, this does not mean that bytevector-copy! does not exist any more; it's actually the name bytevector-copy-partial! that was removed.

Note: See TracTickets for help on using tickets.