New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM should support new optional parameters syntax #4290
Comments
The plan is the following:
|
FYI the spec says that the optional named parameter syntax is: "Optional elements of a production are suffixed by a question mark like so: anElephant? " and not ?v as the comment above hints at. |
Hi Seth, "Optional elements of production" have nothing to do with optional parameters. They refer to the metasyntax (i.e. notation in the spec itself) used to specify Dart syntax. The ?v notation refers to the argument definition test (feature request issue #4265). Here is the relevant section: An argument definition test is an expression that tests whether a formal parameter is bound to an object explicitly passed to a method or function. argumentDefinitionTest: An argument definition test e of the form ?v evaluates to true iff the currently executing invocation of the function that declares v explicitly provided an argument for the formal parameter v; otherwise e evaluates to false. It is a compile time error if v does not denote a formal parameter. The static type of an argument definition test is bool. |
Thanks Regis, that clears it up. :) |
FYI, step 2) for the vm is under review: https://chromiumcodereview.appspot.com/10910119/ |
Per issue #4288
The text was updated successfully, but these errors were encountered: