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

Issue 5656102: code review 5656102: encoding/json: disable anonymous fields (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by rsc
Modified:
12 years, 2 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

encoding/json: disable anonymous fields We should, after Go 1, make them work the same as package xml, that is, make them appear in the outer struct. For now turn them off so that people do not depend on the old behavior. Fixing them is issue 3069.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -0 lines) Patch
M src/pkg/encoding/json/decode.go View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/pkg/encoding/json/decode_test.go View 1 1 chunk +29 lines, -0 lines 0 comments Download
M src/pkg/encoding/json/encode.go View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2012-02-19 05:15:05 UTC) #1
bradfitz
LGTM On Sat, Feb 18, 2012 at 9:15 PM, <rsc@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
12 years, 2 months ago (2012-02-19 05:17:30 UTC) #2
rsc
12 years, 2 months ago (2012-02-19 05:27:09 UTC) #3
*** Submitted as af5a7f6d962d ***

encoding/json: disable anonymous fields

We should, after Go 1, make them work the same as
package xml, that is, make them appear in the outer
struct.  For now turn them off so that people do not
depend on the old behavior.

Fixing them is issue 3069.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5656102
Sign in to reply to this message.

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