Setting and Getting Variable Values Mk II
summary
A new pair of primitives, ⎕VSET returns namespace references and ⎕VGET accepts arrays or name/value pairs, implements fast, safe dynamic assignment and lookup with clear syntax. It benchmarks much faster than existing idioms, supports fallback defaults, merging of any number of source namespaces with last-in wins, works on objects, and builds or extracts namespaces from CSV/TSV or JSON data while preserving or translating invalid names. Examples show creating namespaces from table columns and round tripping back to CSV successfully.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 1:07State of the art comparison
- 2:11New functionality details
- 3:38Namespace handling rules
- 4:47Optional arguments and fallbacks
- 5:51Merging namespaces
- 6:54Querying multiple families
- 7:36Working with CSV data
- 8:42CSV table improvements
- 9:25Invalid name handling
- 10:10Exporting namespaces as tables
- 10:31JSON data to tables
- 10:54Debug flag fallbacks
