Add Duration module to enhance its time-handling capabilities. Several modern programming ecosystems, such as Rust, .NET, Go, and Java, already have similar modules that prove invaluable to their communities.
-
https://learn.microsoft.com/en-us/dotnet/api/system.timespan?view=net-6.0
Key reasons to add a Duration module to Elixir:
- Enhanced Time Handling: Complements Elixir's existing time modules for a more comprehensive solution.
- Improved Compatibility: Promotes better interoperability and smoother transitions for developers migrating to Elixir.
- Alignment with Modern Ecosystems: Ensures Elixir remains up-to-date with the features expected from a modern programming language.
- Enhanced Readability and Maintainability: Simplifies working with time intervals, resulting in more readable and maintainable code.
I would appreciate your consideration and feedback on this proposal. Adding a Duration module would significantly improve Elixir's time-handling capabilities, making it an even more attractive choice for developers.
Thank you so much for your consideration.