From 5eb36240b7bc54a728ef0f41f206197d48544feb Mon Sep 17 00:00:00 2001
From: Robert Griesemer
PrimaryExpr =
Operand |
+ Conversion |
PrimaryExpr Selector |
PrimaryExpr Index |
PrimaryExpr Slice |
@@ -3906,7 +3906,7 @@ space allocated in the underlying array (for a slice) or map. For a slice
Conversions look like function calls of the form
++T(value)@@ -3915,6 +3915,12 @@ whereT
is a type andvalue
is an expression that can be converted to a value of result typeT
. + + ++Conversion = ( TypeName | "(" Type ")" ) Expression . ++The following conversion rules apply:
@@ -4058,6 +4064,10 @@ c := make(chan int, 10); # channel with a buffer size of 10 m := make(map[string] int, 100); # map with initial space for 100 elements
+TODO: Need syntax that permits a type as first argument for built-ins. +
+