• Yoddel_Hickory@piefed.ca
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    4 hours ago

    Type is more important? So if the first argument of a function is minAge, which is an int, the important part is that it is an int? Just feed it any int?

    No, the important part is the meaning, what the variable actually is, if you use a compiled language the compiler will handle types for you anyway. You’ll get a error if you feed it a string, or an water heater object, no surprises.

    Leave the machine work to the machine (compiler in this case), and concentrate on the real work, which is the meaning here.