munificent / ui-as-code

Design work on improving Dart's syntax for UI code
BSD 3-Clause "New" or "Revised" License
121 stars 11 forks source link

Algorithm for binding arguments to parameter doesn't handle optionals correctly #9

Closed munificent closed 6 years ago

munificent commented 6 years ago

The "bind arguments" algorithm seems to bind left-to right, which fails for foo(int a, [int b, int c], int d) and arguments (1, 2, 3). it has run out of arguments before reaching d.

The prototype does the right thing, but the prose is wrong.