commit | 6bd33b6e6da4267c14569a8418b79fa75a7ac723 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Mon Jul 15 13:08:00 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Mon Jul 15 21:36:38 2019 +0000 |
tree | 963bfd7dea66d3f8484c37f659022d5b2558ce94 | |
parent | 5ae10aa9f09c56d762d7b7df890c8065c4824c1f [diff] |
proto: equate floating-point NaNs Treating NaNs as inequal has benefits in mathmetical operations, but is almost certainly never desired behavior in tests. Making them equal allows us to document that Equal reports true if the encoded bytes are also equal (under deterministic marshaling). Change-Id: Id11c9c1681d8785bcc52f0f42064339194065649 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186179 Reviewed-by: Damien Neil <dneil@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.