News for hackers. Stuff that matters.
Re:The hunt for the missing data type by abeppu on Monday March 04, 2024 @12:18PM (#39592968)
And some languages (e.g. java, scala) have standard libraries with interfaces that describe ordered collections, dictionaries, etc, but offer multiple implementations so the programmer can pick based on their specific considerations, but still benefit from library code written around the interface.
Re:The hunt for the missing data type by Hackbraten on Monday March 04, 2024 @12:23PM (#39593038)
It also uses hint/marker interfaces (eg. `RandomAccess`) so the library code can choose among algorithms internally while still presenting an uniform API to the client.