Open nasermirzaei89 opened 4 years ago
This will break a lot of people's code. So while I agree that it should be done, it should probably be done so in a major release. Additionally you should be checking the error returned before you attempt to access the schema. If the "programmer is to lazy to check the error" then they are probably too lazy to check that the schema returned nil, so they will still get an exception regardless.
I agree with merge it for a major release.
Golang methods shouldn't return zero value structs on error. So, we should return
*Schema
on theNewSchema
method.Why: https://groups.google.com/d/msg/golang-nuts/4yBldwsjZwo/sFcz1KVhU3wJ