Good news on IIf

Posted Sat, Dec 30 2006 9:51 by bill
Paul Vick posted some good news about IIf.  The proposed change to IIf is long over due (IMO) and a welcome one !!!
 
But does this have to be a breaking change ?  For existing applications, it should be possible to fully qualify the existing IIf function, Interaction.IIf or Microsoft.VisualBasic.Interaction.IIf, hence preserving the existing behaviour.  This would make it easier for people to cleanup that code too, as they could search for Interaction.IIf, and change that to IIf as well as clean up other issues such as casting that is likely there.
 
So all in all, I think the impact is zero to none if done properly, and the benefits are huge; what currently requires a block If Else statement becomes a simple single line assignment with no side effects.
 
:)
 
 
Filed under: ,