33
The Python dictionary dispatch pattern
(jamesg.blog)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
not unique to python.
function pointers and hashmaps exist in basically all languages
like in lua:
JavaScript:
Rust (using hashmaps with string keys is extremely inefficient tho, there are much better options here but whatever)