-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider introducing a type alias for NamespaceVersion
#35
Comments
FWIW the same approach can be adopted by |
I believe that type aliasing is important for several reasons. Firstly, it can greatly aid in the process of refactoring code (discussed before). Also, if we define a variable as Secondly, type aliasing allows us to implement helper functions that are specific to a particular type, such as a validity check for the |
hii @staheri14 @rootulp , i am interested on working on this issue but i think we should use type declaration let me know what do you think of this and i will create a new pr |
Using this form |
A quick note that aliasing in Golang is slightly different from new type definition. https://yourbasic.org/golang/type-alias/ Might worth reconsidering which of the approaches suites the needs better |
[optional] What do you think about type aliasing here? i.e., defining a distinct type for the
NamespaceVersion
, this will facilitate future refactoring and debuggingOriginally posted by @staheri14 in celestiaorg/celestia-app#1529 (comment)
The text was updated successfully, but these errors were encountered: