-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: document that type inference doesn't apply to generic types
Type inference for types was always a "nice to have" feature. Given the under-appreciated complexity of making it work in all cases, and the fact that we don't have a good understanding of how it might affect readability of generic code, require explicit type arguments for generic types. This matches the current implementation. Change-Id: Ie7ff6293d3fbea92ddc54c46285a4cabece7fe01 Reviewed-on: https://go-review.googlesource.com/c/go/+/390577 Trust: Robert Griesemer <[email protected]> Run-TryBot: Robert Griesemer <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Robert Findley <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters