Re: Prothon should not borrow Python strings!

From: Mark Hahn (mark_at_prothon.org)
Date: 05/24/04


Date: Mon, 24 May 2004 11:28:26 -0700


"Paul Prescod" <paul@prescod.net> wrote

> I can understand why you might be afraid to tackle all of Unicode for
> version 1.0. Don't bother. All you need to do today to avoid the dead
> end is DO NOT ALLOW BINARY DATA IN STRINGS. Have a binary data type.
> Have a character string type. Give them a common "prototype" if you
> wish. Let them share methods. But keep them separate in your code. The
> result of reading a file is a binary data string. The result of parsing
> an XML file is a character string. These are as different as the bits
> that represent an integer in a particular file format and a logical
integer.

This is very timely. I would like to resolve issues like this by July and
that deadline is coming up very fast.

We have had discussions on the Prothon mailing list about how to handle
Unicode properly but no one pointed this out. It makes perfect sense to me.

Is there any dynamic language that already does this right for us to steal
from or is this new territory? I know for sure that I don't want to steal
Java's streams. I remember hating them with a passion.



Relevant Pages

  • Re: Searching for byte sequence
    ... Several lines of "text" header info followed by 10,000bytes of binary data ... like your text string) then the Find approach will work. ... If n gives me an offset in a string (that ... CString cSelect; ...
    (microsoft.public.vc.mfc)
  • Re: Printing PCX image
    ... I haven't tried printing an image although I have worked with Zebra printers. ... I am trying to print a B&W PCX image to a Zebra RW420 file. ... PCX 0 30 {binary data} ... I cannot use a file reference in the PCX, I must embed the file data into the string because I am storing it away in a DB and printing it later so I only have access to a string. ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Strange issue while executing sql server sp
    ... references a string or binary data, so it probably isn't the ctns column. ... I have a simple stored procedure in sql server 2005 express version. ...
    (microsoft.public.sqlserver.programming)
  • RE: Strange issue while executing sql server sp
    ... "Vern Rabe" wrote: ... references a string or binary data, so it probably isn't the ctns column. ... I have a simple stored procedure in sql server 2005 express version. ...
    (microsoft.public.sqlserver.programming)
  • conversion help some vb asp to c#
    ... ' Because we have binary data coming in, we have to do all the data handling ... Basically, a string ... Dim plaintext, filedata, tagtext ... Dim FieldStart, FieldEnd, InfoEnd ...
    (microsoft.public.dotnet.languages.csharp)