Re:A brief interview with Awk creator Dr. Brian Kernighan
by chuckadams on Thursday July 18, 2024 @05:00PM
(#40999695)
I’d say plists have a stronger claim on being “real” associative arrays. Lisp never made much distinction between “built in” and “library” to begin with, you're using the same syntax to use the feature either way.
[ Parent
| on HN ]
Re:A brief interview with Awk creator Dr. Brian Kernighan
by kragen on Thursday July 18, 2024 @11:52PM
(#41001897)
i think it's true that, much of the time that you'd use a dict in python, you'd use a property in 01960s lisp, because it let you take advantage of the read-time implicit hashing of symbols; you probably only had one or two properties on most of your symbols, so getting from the interned symbol to the property was a matter of a handful of instructions. but conceptually i feel like they're pretty different ideas