Ticket #30 (writing defect)

Opened 2 years ago

Last modified 15 months ago

string ports

Reported by: alexshinn Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - I/O Keywords:
Cc:

Description

Do we support SRFI-6 string ports, reaffirmed by R6RS?
Do we support the with- and call-with- utilities?

Change History

comment:1 Changed 2 years ago by cowan

"Reaffirmed" is a little misleading. SRFI 6 ports are created by OPEN-INPUT-STRING and OPEN-OUTPUT-STRING, and GET-OUTPUT-STRING extracts the text accumulated in an output port as a string. In R6RS, we have OPEN-STRING-INPUT-PORT and OPEN-STRING-OUTPUT-PORT, where the latter returns both the port and the anonymous extractor.

SRFI 6 is supported (according to the documentation) by PLT, Gauche, MIT, Gambit, Chicken, Bigloo, Scheme48/scsh, Guile, Kawa, SISC, STklos, RScheme, s7, SXM, Pocket, stk, and Sizzle, plus the R6RS implementations IronScheme?, Ikarus, Larceny, and Mosh. Only SCM, SigScheme?, and Scheme 9, plus the R6RS implementation Ypsilon, lack support for it.

Neither interface seems to me superior to the other, but I recommend we go with SRFI-6 because of its near-ubiquity.

comment:2 Changed 19 months ago by cowan

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

The WG voted to accept SRFI-6 string ports as part of the core.

comment:3 Changed 16 months ago by alexshinn

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:4 Changed 16 months ago by alexshinn

  • Owner alexshinn deleted
  • Status changed from reopened to assigned

comment:5 Changed 16 months ago by alexshinn

  • Status changed from assigned to decided

comment:6 Changed 15 months ago by alexshinn

  • Owner set to alexshinn
  • Status changed from decided to writing
Note: See TracTickets for help on using tickets.