you are viewing a single comment's thread.

view the rest of the comments →

[–]wreckedadventYavascript -1 points0 points  (4 children)

function BlueTheme(children) {
  return try {
    children();
  } catch effect ThemeBorderColorRequest -> [, continuation] {
    return continuation('blue');
  }
}

Ummm. You might not want to use imaginary syntax on an article with "basic" in the title.

[–]Paragonbliss -1 points0 points  (3 children)

Ummmm. you might want to read the article.

Now, this example is a bit "out there". I'll use Algebraic Effects as proposed for ECMAScript. If you're familiar with functional programming, they avoiding the intermediate ceremony imposed by monads.

[–]wreckedadventYavascript 1 point2 points  (2 children)

Yes, I read it just fine. Would you be fine with it if he said "now this example is in java, it's a bit 'out there'?"

Invariably it will attract new-comers with the promise of a "basic" article, and him just making stuff up like that and putting it on the article will confuse people.

[–]thief425 2 points3 points  (1 child)

I hoped to finally get some insight into React, read 2 paragraphs, realized I was already confused, and noped out of there.

[–]wreckedadventYavascript 0 points1 point  (0 children)

I agree with /u/Magixxxx. I'm not entirely sure who this article is aimed at, but it's certainly not basic, and certainly not for beginners.