On Wed, Mar 10, 2010 at 3:18 PM, Michal Suchanek <[email protected]> wrote:
> On 10 March 2010 23:58, Jonathan S. Shapiro <[email protected]> wrote:

>> System.Char is typed in BitC as "BitC.UCS2".
>> System.String is typed in BitC as "BitC.UCS2 Vector".
>
> Does this amend the contract to provide these types on any platform?

I'm not clear about the question. The types BitC.UCS2, BitC.UCS4,
BitC.String and BitC.char are specified by BitC, and would be present
in all implementations. The statement about relationships to
System.Char and System.String are specific to the specification of
interoperability with .NET/CLR.

Does that answer your question?

> Would the contract be amended for any other platform-specific string
> representation?

Yes. The specification of interoperability for any multi-language
target platform is necessarily target-specific.

> Beware of the Chinese guy who comes and says in a polite manner that
> BitC sucks because it can only do Unicode and he needs additional
> characters for his Ancient Chinese texts (for which there is
> non-Unicode encoding).

As Bob Asprin would say: "We'll burn that bridge when we get to it."
Today, BitC sucks for everybody because it isn't running at all. If we
can get that down to complaints from your Chinese guy, I'll consider
that a major improvement.

Even Ancient Chinese Guy has to build his own encoding, at least we
have a type system to help him.

>>> BitC.Char, if present, is a type alias for BitC.UCS4, a.k.a Unicode Code
>> Points.
>
> I guess we can avoid a Char altogether since it is just a confusing alias.

All BitC "core" types are in the BitC namespace, which is implicitly
imported. BitC.Char is therefore seen by the programmer as Char. I
used the explicit qualifier here in the interest of clarity.

>> Is that it?
>>
>> I think that this is one consistent position. The other consistent position
>> would be that "BitC.char" is a type alias for BitC.UCS2.
>
> What would be this consistent with?

CLR and JVM, and consequently the expectations of the majority of
current programmers in the world. It's also consistent in the sense
that it's a clearly specified outcome even if it is one that you and I
think is sub-optimal.

shap
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to