Declare functions dynamically.

Isn't it more future proof and shorter if you declare the types in a strings array and bind the functions inside a for loop _to avoid writing the same function_ over and over?