A better example for duck typing would be something like:
var my_func(var int_or_string, var int_or_obj) { ... return int_or_string_result; }
Simplifies certain operations, complicates debugging. Great for small scripts though.
var my_func(var int_or_string, var int_or_obj) { ... return int_or_string_result; }
Simplifies certain operations, complicates debugging. Great for small scripts though.
No comments yet.