whyrusleeping / cbor-gen

Codegen for cbor codecs on your types
MIT License
35 stars 25 forks source link

Forbid nil unless the field is marked nullable #31

Closed Stebalien closed 4 years ago

Stebalien commented 4 years ago

This change forbids nil pointers (except zero slices/maps) unless the field is explicitly marked as "nullable".

This is usually what users want and can help avoid unexpected null pointer exceptions.

Unfortunately, this is a massively breaking change and should not be merged until we can update downstream projects.

Stebalien commented 4 years ago

Closing this for now.