New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No documentation on asterisks #81
Comments
will do, but yup they're necessary |
i was working on a better readme but the draft i ended up with wasn't much of an improvement so i scraped it. can you list some specific stuff you are confused about? i know there have been a bunch of blog posts - maybe the best parts or ah-hah moments of those would help too. |
just make sure to talk about spacing and astrixises, that's where i personally need guidance. I also have a suspicion of generator relationship with the new domains of node API lore. if some comparison therein could be made kudos |
@jonathanong acknowledging them before they are used would be a good start, along with an explanation of what they mean, how they are supposed to be used, their significance and any gotchas (what versions of node support them? what OS's support them? what about browsers? what's the future? etc.) |
what spacing? and it has nothing to do with domains. |
well i meant the space and the astrixis |
domains are more like generators in general that's very different. |
are we talking about |
that helps |
OH you meant in comparison to domains. i thought you implied that they were related haha |
they are yes wtf is domain.run() versus yield |
domains == huge hack to catch errors, yield == language-provided non-hack to write synchronous code and also happens to let you catch errors with try/catch |
other than the error aspect they're unrelated, but I would never use them |
thats exactly what i was asking |
honestly i don't know much about domains. they seem very confusing to me. co is closer to fibers than domains. from what i understand about domains, they catch "uncaught exceptions" and errors emitted from event emitters versus co-generators which use traditional try/catch blocks. one caveat though with co-generators is that event emitters without any error listeners will still throw and kill your process, which is what half the issues in koa are currently about |
yea domains are basically global state, errors just get tacked to the current domain within the function, massive hack |
@visionmedia perhaps we should just combine co and koa help? koajs/help#1. could make that repo a wiki where people can collaborate on docs and ask questions perhaps. maybe rename it to everything in koajs/koa can remain dull and official. |
I guess with spacing he meant |
There needs to be documentation on asterisks, in one of the first paragraphs of the main Readme.
It is not at all clear to anyone new to generators in javascript what they are for, or that they are associated in any way with something called "generators", whether they represent new syntax or not, etc.
The status quo results in unnecessary wasted time for many people.
Here's some documentation about the topic, but even after reading it, I'm still unclear as to whether these symbols are necessary or not.
The text was updated successfully, but these errors were encountered: