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
These choices were intentional to keep the code explicit, simple to read and understand, and avoid things going unnoticed. I personally don't mind either version, though. Some people prefer reading "if not since.IsZero", others "if since.IsZero is false", but ultimately it doesn't really matter.
I personally wouldn't put in the effort to go through the code and change it just for the sake of changing it, as I don't see a big benefit in that. If, however, you're working on a feature and are touching an area anyway, and you believe that it makes sense to rewrite it in a shorter format, I wouldn't mind the less verbose format either.
I don´t mind either, only thing is that 'linters' and some static checkers will complain if you would have them on.
But if it was an intentional decision then I don´t think we need to change this.
I don´t know what's more idiomatic in Go, but then again that word has been used to mean anything and everything. 🤣
When I looked through the code I saw quite a few places where there was some checks made that are not neccessary in that 'verbosity'.
Examples of said verbosity here:
Could be simplified to:
Now my question would be, is this verbosity explicitly wanted or would this be something that one could remove and simplify via a PR?
Please let me know.
The text was updated successfully, but these errors were encountered: