Thread
#multiplatform
    orangy

    orangy

    5 years ago
    There is no “static” in some runtimes, e.g. in JavaScript.
    soywiz

    soywiz

    5 years ago
    It is prototyped, but the equivalent for static still exists:
    var MyClass = {}; MyClass.staticFunc = function() {}; MyClass.prototype.instanceFunc = function() {};
    or in the EcmaScript stdlib
    Date.now()
    is “static” vs
    new Date().getTime()