Comment

Comment by danmaz74

Talking about flow, I was wondering: couldn't something like that be implemented just with comments, leaving us with actually 100% valid javascript? Eg:

  // @param somestring [String] yadda yadda
  // @return [Boolean]
  function somefunction(somestring) {
    // @type [Boolean]
    var ret;

    ...

    return ret;
  }
This would remove any type of "lock in" if you want to use it...
parent danmaz74 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton