[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion generic streams

From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2000-12-13 02:57:10 CET

> Even easier:
>
> *stream = svn_stream_create(pool, rs, read_string_fn, NULL /* write */,
> NULL /* seek */);
>
> One simple entry point which takes the appropriate functions and the
> baton.

One problem with this is that, if you want to add another function to
streams (something that could tell you whether a read would block, for
example), you need to change all the callers. Greg H's interface
suits me better.

Guile at one point had a family of scm_make_port_type_FOO functions,
where FOO was a sequence of letters that indicated which functions it
expected as arguments. It was supposed to be terse, but it ended up
just being ugly and hard to read.
Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.