miller icon indicating copy to clipboard operation
miller copied to clipboard

Switch to generics [internal]

Open johnkerl opened this issue 10 months ago • 0 comments

Miller was ported to Go before generics existed, but they've been part of the Go language for quite a while now.

Main items:

  • list.List -- awkward to genericize (namely Front, Back, Next) -- but it's better to simply use slices which are (and have always been) typed
  • Genericize Miller's lib.OrderedMap

Why:

  • Improved code legibility
  • Moving from linked lists to sliced may positively impact performance due to simpler memory allocation
  • Good development project

johnkerl avatar Mar 05 '25 13:03 johnkerl