3 ms·
"Should array indexes begin at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration" -- Stan Kelly-Bootle
by commandlinefan 6y ago
"Should array indexes begin at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration"
-- Stan Kelly-Bootle
- iudqnolq 6y agoHe's a fascinating guy too. I learned on hn recently he lived a parallel life as a mildly popular musician and football (soccer) manager.
- yesenadam 6y agoThere is Compromise, a Python library supporting this >>> l = HalfIndexList('abcde') >>> l[0.5] 'a' and other similar crazy ideas, like SemiMutable data types, which only change value if you try to set them a few times. https://github.com/travisjungroth/Compromise https://github.com/travisjungroth/Compromise Introduced in this short 2016 talk https://youtu.be/yC9m2GInXqU?t=337 https://youtu.be/yC9m2GInXqU?t=337