You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great question. In the go code, I try to have the convention of "new" is usually just a memory allocation/simple init, fast and no error possible. "make" can fail. "create" is for creating new persisted entities.
However, I did not stick with the convention for the commands (why??) and in this case the function name is reflective of the command.
This is a great question. In the go code, I try to have the convention of "new" is usually just a memory allocation/simple init, fast and no error possible. "make" can fail. "create" is for creating new persisted entities.
However, I did not stick with the convention for the commands (why??) and in this case the function name is reflective of the command.
Originally posted by @levb in #27
The text was updated successfully, but these errors were encountered: