2 comments

[ 0.26 ms ] story [ 10.3 ms ] thread
Notable that TypeScript has much worse ergonomics around named params than C# does. That of the latter is quite elegant.
I think optional arguments are a broken idea, because the optional value may be sensible or correct most of the time, but there will be a time when that good value suddenly becomes wrong. The effort to FIX this mistake now results in a lot more work that could have been saved if the optional was always required from the start.