google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.3k stars 209 forks source link

starlark: disallow keyword argument after *args #317

Closed alandonovan closed 3 years ago

alandonovan commented 3 years ago

f(args, k=v) is a now an error. Use f(k=v, args).

Arguments are evaluated left-to-right, as in Python2 (but not Python3). See https://github.com/bazelbuild/starlark/issues/13 for spec change.

This is a breaking language change---but the fix is easy.