471,325 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

x ?? null

If the right-hand side of a ?? expression evaluates to null at compile-time,
it should probably produce a warning, because that's always redundant.

Just a thought, in case any MS people are taking notes!

Eq.
Jul 15 '08 #1
4 1266
On Jul 15, 10:47*pm, "Paul E Collins" <find_my_real_addr...@CL4.org>
wrote:
If the right-hand side of a ?? expression evaluates to null at compile-time,
it should probably produce a warning, because that's always redundant.

Just a thought, in case any MS people are taking notes!
The best way to make sure that MS guys are taking notes is to post
your suggestions at Microsoft Connect:

http://connect.microsoft.com/VisualStudio/Feedback
Jul 15 '08 #2
On Jul 15, 2:47*pm, "Paul E Collins" <find_my_real_addr...@CL4.org>
wrote:
If the right-hand side of a ?? expression evaluates to null at compile-time,
it should probably produce a warning, because that's always redundant.

Just a thought, in case any MS people are taking notes!

Eq.
It does not?

Then probably they just remove the comparison from the generated code.
Jul 15 '08 #3
Just a thought, in case any MS people are taking notes!

No matter how fool-proof you make something nature will always create a
better fool :-)

Pete

Jul 16 '08 #4
On Jul 15, 7:47 pm, "Paul E Collins" <find_my_real_addr...@CL4.org>
wrote:
If the right-hand side of a ?? expression evaluates to null at compile-time,
it should probably produce a warning, because that's always redundant.

Just a thought, in case any MS people are taking notes!

Eq.
Invest in Resharper.
Jul 16 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Agoston Bejo | last post: by
3 posts views Thread by iStrain | last post: by
5 posts views Thread by Mike MacSween | last post: by
3 posts views Thread by sathyashrayan | last post: by
102 posts views Thread by junky_fellow | last post: by
29 posts views Thread by Jason Curl | last post: by
5 posts views Thread by David Sworder | last post: by
64 posts views Thread by yossi.kreinin | last post: by
reply views Thread by Aaron Morton | last post: by
46 posts views Thread by lovecreatesbea... | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.