On 3/18/2012 11:28 AM, Tove wrote:
It should be possible to eat the cake and still have it... even if warnings
normally are frowned upon(with good reason), using warnings for this would allow
the benefits from both "camps"...

It would allow a painless "prototype porting" for new operating systems which
are similar, yet... even if it does work, at a later point one would still have
to go through all the version statements and either silencing the warning, or
selecting the optimized path.


I know that we've all been trained to avoid copypasta, and have an instinctive "ick" factor when seeing it.

But it really is not painful to do a little copypasta for the system versions, nor does there need to be any new language features for this.

Reply via email to