Why "?T" instead of "T?"?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Why "?T" instead of "T?"?

John Cowan
With conditional types gone, is there any reason not to use
the clearer "T?" for a nullable type?  It's compatible with
C# and with the "T!" syntax.

--
All Gaul is divided into three parts: the part          John Cowan
that cooks with lard and goose fat, the part            http://ccil.org/~cowan
that cooks with olive oil, and the part that            [hidden email]
cooks with butter. -- David Chessler

Reply | Threaded
Open this post in threaded view
|

RE: Why "?T" instead of "T?"?

Jeff Dyer
Ah, good catch. Until recently there was a syntactic ambiguity with
conditional expressions. But with the recent introduction of type
expressions that is no longer the case; T? and T?x:y no longer co-occur
in the same syntactic context. I'll propose to the working group that we
restore symmetry between T! and T?. Cool!

Jd

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of John Cowan
Sent: Monday, June 12, 2006 7:45 PM
To: [hidden email]
Subject: Why "?T" instead of "T?"?

With conditional types gone, is there any reason not to use
the clearer "T?" for a nullable type?  It's compatible with
C# and with the "T!" syntax.

--
All Gaul is divided into three parts: the part          John Cowan
that cooks with lard and goose fat, the part
http://ccil.org/~cowan
that cooks with olive oil, and the part that            [hidden email]
cooks with butter. -- David Chessler
_______________________________________________
Es4-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es4-discuss