I know Python and am delving into other languages for purposes you know. Javascript to let you know if the title didn't already.
in python we can do:
x = ["a", "b", "c", "d"]
x.remove("c")
And it removes that object. Yes it is a string, but with scripting it is also an object.
And it works, we can pop it and other such things that "can and are" simpler.
Why do I need an to iterate the Array and slice in JS? Why is there no .remove() or other such utilities outside of my doing it myself, no libs involved? This is a scripting language right? This is even dynamically typed, so why do I need to treat this like C or Java? Everything is an object, I get that, but don't objects have methods? This object is just a datatype though. There are no built-ins for it? Where are the mutable data-types, such as something that needs it like an "List"? Hell, make a mutable Array. This is scripting, not bare metal....
Or maybe stackoverflow isn't telling me something, I;ve searched maybe ntot hard enough but still. Is there a mutable datatype that can hold "objects" or a simple listt [in python notation] that can hold objects I can index by 'name' to operate on, whether it can be removed by name or not.
I do get it though.I know why I need to do it the JS or Java or "blah" way, but this is why people gravitate to things like python. If I had to choose between JS "classes" and Python
"classes", I would pick Python. At least Python makes classes separate from datatypes clearly. I shouldn't choose between having a "new" statement when all an "object" or "class" has is properties like a damn vector. Make a struct a damn struct ir GTFO. And god forbid I separate OOP classes in JS. But that's not what JS is for that eh? So why make it viable for the canvas tag???
I'm just bitching though... It's not doing what I want it to do with how I'm used to, so I bitch. JS isn't meant to do game dev and never was. But the only cross-platform things I can do with mobile is HTML5/Javascript, Flash, or native dev. Flash is dead or is dying, so what am I left with? HTML5 IS the future for mobile and web, albeit mobile or not, shit. Adobe already knows this don't they, which is why phonegap is Adobe. Native webviews, yeah, lets laugh and make more excuses.
BTW, phonegap cloud is a fucking rip-off. And so is the Flash cross-compiler....
Again, just bitching about JS.