2 ms·
I believe this is more generally known as table-driven methods, and I also enjoy using them. They feel more ergonomic than conditional statements, and they're a
by sidpatil 6y ago
I believe this is more generally known as table-driven methods, and I also enjoy using them. They feel more ergonomic than conditional statements, and they're also more flexible—you can dynamically modify the conditions and actions by modifying the data structure which contains them.