I have been working on developing a library or reusable code that I plan to use across different projects. During the development process, I came across the concept of using constants within the library. Now, I understand that constants are immutable values that remain the same throughout the code.
However, I am a bit skeptical about whether I should be using constants in my library or not. I want to make sure that I am making the right decision, and that's why I am seeking advice from the community.
So, what are the considerations I should keep in mind when it comes to using constants in libraries or reusable code? Are there any best practices or potential pitfalls that I need to be aware of? I just want to make sure that I am taking a thoughtful approach towards designing my library.
Thank you in advance for your insights and opinions!