On 1/7/19, 2:36 AM, "Harbs" <harbs.li...@gmail.com> wrote:

    To be clear:
    
    I have no objection to using factory functions run places where it makes 
sense.
    
    My issue is more that we have no other option.
    
We are using a language that supports strong-typing.  When someone says they 
want an object of a certain type, you should pass them an object of that type 
because you don't know if there will be a test for that type by the runtime or 
somewhere in their code.  You have the option to lie to the compiler, or teach 
the compiler to lie or turn off type-checking entirely, but then your code can 
only run if everyone promises to never check a type.  I would expect the future 
to be more type-safe, not less.  Let's write our code using best practices so 
it will stand up in structured environments.

My 2 cents,
-Alex    

Reply via email to