Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14366)

Issue 6853062: code review 6853062: cmd/vet: report type and format specifier mismatch in P... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by u
Modified:
11 years, 1 month ago
Reviewers:
r, bradfitz, golang-dev
Visibility:
Public.

Description

cmd/vet: report type and format specifier mismatch in Printf*. Fixes issue 4404.

Patch Set 1 #

Patch Set 2 : diff -r dbf92f38bae0 https://code.google.com/p/go #

Patch Set 3 : diff -r dbf92f38bae0 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -7 lines) Patch
M src/cmd/vet/print.go View 1 5 chunks +67 lines, -7 lines 0 comments Download

Messages

Total messages: 5
u
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2012-11-17 01:39:55 UTC) #1
u
For now only basic literals are supported. It would be nice to add support for ...
11 years, 5 months ago (2012-11-17 01:42:31 UTC) #2
bradfitz
Couldn't you use the new type checker instead? On Fri, Nov 16, 2012 at 5:42 ...
11 years, 5 months ago (2012-11-17 02:11:15 UTC) #3
r
Printf in Go is sufficiently rich that this is a hard problem to do well. ...
11 years, 5 months ago (2012-11-17 04:54:05 UTC) #4
bradfitz
11 years, 5 months ago (2012-11-17 06:32:35 UTC) #5
On Fri, Nov 16, 2012 at 8:54 PM, Rob Pike <r@golang.org> wrote:

> Printf in Go is sufficiently rich that this is a hard problem to do
> well. I agree with Brad that a proper solution to this requires the
> type checker and probably a lot more code.


It might actually be less code, even.  I haven't looked at the type
checker.  From talking to Robert, though, it sounds like using it should be
easy.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b