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

Issue 100430043: code review 100430043: encoding/json: document what unmarshal of `null` into n... (Closed)

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

Description

encoding/json: document what unmarshal of `null` into non-reference type does Originally it was an error, which made perfect sense, but in issue 2540 I got talked out of this sensible behavior. I'm not thrilled with the "new" behavior but it's been there since Go 1.1 so we're stuck with it now. Fixes issue 6724.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 8a13066e4922 https://code.google.com/p/go/ #

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

Messages

Total messages: 3
rsc
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
9 years, 11 months ago (2014-05-13 03:30:11 UTC) #1
bradfitz
LGTM On May 12, 2014 8:30 PM, <rsc@golang.org> wrote: > Reviewers: golang-codereviews, > > Message: ...
9 years, 11 months ago (2014-05-13 03:31:56 UTC) #2
rsc
9 years, 11 months ago (2014-05-13 03:38:27 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=d17b1b44d2cb ***

encoding/json: document what unmarshal of `null` into non-reference type does

Originally it was an error, which made perfect sense, but in issue 2540
I got talked out of this sensible behavior. I'm not thrilled with the "new"
behavior but it's been there since Go 1.1 so we're stuck with it now.

Fixes issue 6724.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/100430043
Sign in to reply to this message.

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