> 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
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