junk-drawer icon indicating copy to clipboard operation
junk-drawer copied to clipboard

replace/rewrite vector module to use list as the underlying implementation

Open AlecTroemel opened this issue 1 year ago • 0 comments

I've personally transitioned to representing vectors as tuples instead of tables. Some reasons

  • Matches how library's such as jaylib represent vectors
  • allows me to override operators to work with tuples, which feels great
  • IMO leads to a cleaner implementation, the "L" in lisp does stand for "list"!

Here's what I've been using -> https://git.sr.ht/~alect/jmpulse/tree/master/item/src/vectors.janet. It would be great if these 2 projects shared the same implementation.. however I'm not sure how to organize that yet

AlecTroemel avatar Nov 19 '23 22:11 AlecTroemel