DynamoDS / DesignScript

About the DesignScript language
Apache License 2.0
11 stars 11 forks source link

Type annotations in imperative code block capture lists #25

Open pboyer opened 7 years ago

pboyer commented 7 years ago

This type of syntax would allow parallel invocation of imperative code.

What happens if the variable in the capture block does not match the type annotation?

a = {0,1,2};
b = [Imperative]( a : number ) {
  // do stuff
};