DIP 1019--Named Arguments Lite--Final Review

Dennis dkorpel at gmail.com
Fri Aug 23 19:15:41 UTC 2019


On Friday, 23 August 2019 at 19:01:35 UTC, JN wrote:
> named arguments allow you to detect a case when arguments get 
> renamed and semantics change, rect(x, y, width, height) vs 
> rect(x1, y1, x2, y2).  (...)
> What if the default gets changed and fullScreenMonitor is 
> supposed to be fooMonitor instead?

If they did something like that tens of thousands of C projects 
would break. For that reason they'd never simply overhaul 
function semantics while remaining the same function prototype.
It strikes me that people consider this an actual real-world 
scenario, but maybe I'm missing something. Did this ever happen 
to a library?




More information about the Digitalmars-d mailing list