HNHacker News
TopNewBestAskShowJobs

alongub

279 karma · joined November 15, 2014

submissionscomments
alongub··on Spider Programming Language
fn is a often used as a variable name
alongub··on Spider Programming Language
Appreciate your opinion!

About the :: syntax: http://spiderlang.org/#code-safety-global-scope-usage

About the extends/super syntax: http://spiderlang.org/#functions-inheritance

alongub··on Spider Programming Language
Definitely not the focus! The extends/super keywords are just "shortcuts" to normal prototypal inheritance. I just thought that the time machine example was pretty cool :)
alongub··on Spider Programming Language
Exactly. Syntax style is usually a matter of personal opinion. "Alien syntax" wasn't very objective and I should probably remove it from the website.

However, ambiguous syntax is a huge problem of CoffeeScript. Read more here: http://ceronman.com/2012/09/17/coffeescript-less-typing-bad-...

alongub··on Spider Programming Language
This is a huge issue, and I'm still thinking about it. That's why I didn't add native require support yet. I'm hoping that the community would come up with a good idea.
alongub··on Spider Programming Language
You are welcome to make one! :)
alongub··on Spider Programming Language
Of course, but I think he meant native modularity support, which is important IMO.
alongub··on Spider Programming Language
I actually agree about this - two ways to do exactly the same thing is generally a bad thing when it comes to language design. But I think that a more important goal is to make the transition from Spider to JS as easy as possible.
alongub··on Spider Programming Language
It's not that JavaScript syntax is difficult. It's that there are some common patterns that repeat themselves so much times.

For example, safe object navigation. This code in Spider/CoffeeScript:

    var x = a?.b?.c?.d;
compiles to something like:

    var x = typeof a !== "undefined" && a && a.b && a.b.c ? a.b.c.d : void 0;
alongub··on Spider Programming Language
I'm still unsure how to add modularity while maintaining compatibility with CommonJS, AMD, etc.

I thought about adding a require statement such as:

    require "vm"

    require (
      "util",
      "io"
    )
That would also support git repos, inspired by DuoJS (https://github.com/duojs/duo):

    require "alongubkin/phonertc"
alongub··on Spider Programming Language
Spider was highly inspired by this article. In the original "Introducing Spider" article I wrote, I referenced it
alongub··on Spider Programming Language
Hobby projects - definitely, but I wouldn't use it for production projects yet. Even though Spider currently has 92% test coverage, I believe Spider still needs more testing and feedback.

Make sure to report any bug you encounter so I can fix it as quickly as possible!

alongub··on Spider Programming Language
Of course. Swift does this as well BTW.
alongub··on Spider Programming Language
This is definitely possible. Can you open an issue in GitHub?
← PreviousPage 2 of 2