Why do people keep on trying to fuck up Javascript? I don't want your shit OOP and classes, take them back.
Do you even get javascript? And the beauty and ease of coding in it?
JS is amazing because of two things:
1. VAR - yes var. it's 2015 and yet you want me to waste my time typing in useless int, float, char. Really? But wait! now that you have wasted hours adding useless types to your code, you can benefit from our IDE that will tell you where you missed one! So you see, we actually saved your ass!
2. JSON, and everything is an object. Instead of creating 20 functions, a single function(x) can handle multiple cases with flow enhancement.
x is an array. x[0] is a number, x[1] is an optional object, x[2] is a freaking function. all dynamically changeable.
f([1]), f([2, {}]), f([3, {}, callback]). you want to add another flow? no problem, extend your array or just set a property on the object, js serves you, you are the master.
--
instead what we get? 'too few arguments throws'; typeof D < {new(x:T):D, s(x:T):U, ...C’s...}. WTF is that? Does that look like sound coherent code to you?