Declare functions dinamically.

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