Add some doc examples to lib{green,native}#12073
Add some doc examples to lib{green,native}#12073alexcrichton wants to merge 1 commit intorust-lang:masterfrom
Conversation
There was a problem hiding this comment.
It'd be nice if the relationship between threads, schedulers, tasks, etc were outlined here. I still don't know what they are on libgreen. Additionally, what parallelism one can expect when using libgreen.
|
cool examples |
There was a problem hiding this comment.
Does coercion bare fn -> proc work? I thought that may've disappeared in @eddyb's env-ptr removal.
There was a problem hiding this comment.
I think it's gone for function pointers -> closures or procs but not statically known functions. Too lazy to check at the moment...
There was a problem hiding this comment.
It does indeed, I've been using it regularly
fn start(argc: int, argv: **u8) -> int { green::start(argc, argv, main) }
That code is under 80 characters, which is the best part!
"How do I start in libX" is a common question that I've seen, so I figured putting the examples in as many places as possible is probably a good idea.
|
r? @cmr, I've added more documentation about the high-level design of libgreen, but I wouldn't exactly consider myself a stellar author. |
"How do I start in libX" is a common question that I've seen, so I figured putting the examples in as many places as possible is probably a good idea.
fix: fn_param completion lookup close rust-lang#12073 caused by rust-lang#12040
"How do I start in libX" is a common question that I've seen, so I figured
putting the examples in as many places as possible is probably a good idea.