From 1a304e1d93cef13b61b2ebd4229586fab344ed0d Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 8 May 2009 10:25:06 -0700 Subject: [PATCH] - document string([]int{...}) conversion - cleanup of open issues section R=r DELTA=31 (12 added, 9 deleted, 10 changed) OCL=28450 CL=28513 --- doc/go_spec.html | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index d52d050cd8..28a96549a9 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -7,24 +7,15 @@ Open issues: - declaration "type T S" strips methods of S. why/why not? - no mechanism to declare a local type name: type T P.T - Todo's: [ ] document illegality of package-external tuple assignments to structs w/ private fields: P.T(1, 2) illegal since same as P.T(a: 1, b: 2) for a T struct { a b int }. [ ] should probably write something about evaluation order of statements even though obvious -[ ] string conversion: string([]int{}) vs string(int) conversion. Former is - "inverse" of string range iteration. -[ ] do we need explicit channel conversion (to change channel direction)? - - -Wish list: -[ ] enum symbols that are not mixable with ints or some other mechanism - (requirement that basic type aliases need conversion for compatibility) -[ ] Helper syntax for composite types: allow names/keys/indices for - structs/maps/arrays -[ ] built-in assert() ("conditional panic") (gri) +[ ] document new assignment rules (for named types on either side of an + assignment, the types must be identical) +[ ] document T.m mechanism to obtain a function from a method --> @@ -3783,7 +3774,8 @@ The following conversion rules apply:

@@ -4307,6 +4308,8 @@ Implementation does not honor the restriction on goto statements and targets (no cap() does not work on maps or chans.
len() does not work on chans. +
+string([]int{...}) conversion is not yet implemented.

-- 2.48.1