3 ms·
Imagine writing cgo like this: #pragma C { #include <stdio.h> int foo(var * bar) { ... } Or having documentation look like this:
by gwd 6y ago
Imagine writing cgo like this:
#pragma C {
#include <stdio.h>
int foo(var * bar) {
...
}
Or having documentation look like this:
// FIXME: This is kind of a hack, and we should
// get rid of it before v1.0
#pragma docs {
The FooBar function will Foo all the Bars passed to it.
}
func FooBar(...) {
You could even imagine modifying your editor to do proper syntax highlighting on the C code.
Ah, well -- water under the bridge at this point. I like Go as a language overall. Most of their experiments have worked out pretty well, I think; it's inevitable that some of your experiments don't work out the way you expect, and then you're stuck with them.