3 ms·
I'm sorry but the syntax is absolutely gash! This is like a horrible lovechild between Python and Coffeescript gone terribly terribly wrong. If that was the sel
by notastartup 12y ago
I'm sorry but the syntax is absolutely gash! This is like a horrible lovechild between Python and Coffeescript gone terribly terribly wrong. If that was the selling point then its a no go from me. I know this sounds harsh but I actually thought that this was a language to create web crawlers.
func TimeMachine(pilot) {
this.pilot = pilot;
this.go = func (noise) {
::console.log(noise);
};
}
func Tardis()
extends TimeMachine("The Doctor") {
this.go = () ->
super.go("vorp vorp");
}
- alongub 12y agoAppreciate your opinion! About the :: syntax: http://spiderlang.org/#code-safety-global-scope-usage http://spiderlang.org/#code-safety-global-scope-usage About the extends/super syntax: http://spiderlang.org/#functions-inheritance http://spiderlang.org/#functions-inheritance
- seabrookmx 12y agoIf it's any consolation, I think spider uses the most sane syntax out of any compiles-to-JS language I've played with so far. And that's coming from an arachnophobe :) Maybe because I've written a decent amount of C++ I'm more acclimatized to the "::" syntax..