[m-rev.] for review: initialize stream readers/writers at open time for C#

Zoltan Somogyi zoltan.somogyi at runbox.com
Sun Apr 23 14:53:48 AEST 2023


The equivalent tasks are already done at open time with C and Java.

For review by Peter, but I would like other people's feedback as well
about the idea that we should eliminate the generic "stream" type,
and replace it with specific text_input, text_output, binary_input and binary_output
stream types. We already have these at the user facing level, but we should have them
one level down as well, at the defined-as-foreign-types level. (I think we should keep
the notag wrapper types, because e.g. "binary_input_stream(0xABCD)" is more
informative in an mdb session than just "0xABCD".)

I also think we should reverse two equivalence types, so that text_input_stream and
text_output_stream are not synonyms for input_stream and output_stream respectively,
but vice versa, with text_input_stream and text_output_stream being the non-equivalence
types.

Opinions?

On a related matter, what is the situation with MR_NEW_MERCURYFILE_STRUCT?
Does anyone user it? Is it reliable? If yes, is it fast enough to replace the old file
representation for everyone? If not, does anyone have plans to ever make it reliable?

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.mf
Type: application/octet-stream
Size: 685 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20230423/dcbfa329/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.mf
Type: application/octet-stream
Size: 8388 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20230423/dcbfa329/attachment-0001.obj>


More information about the reviews mailing list