3 ms·
I didn't say it will, nor did OP say that he wanted the alternative to be as ubiquitous as C. When you refer to Go plug-ins API, do you mean this[1]? Because I
by bigato 8y ago
I didn't say it will, nor did OP say that he wanted the alternative to be as ubiquitous as C.
When you refer to Go plug-ins API, do you mean this[1]? Because I wrote a fair amount of Go and wasn't even aware of this package. And while I don't know whether it is terrible or not, I'm pretty sure this package in particular is not relevant for most Go applications. So maybe you meant something else?
I didn't say Rust users want a GC language to replace C, I don't know where this is coming from.
[1] https://golang.org/pkg/plugin/ https://golang.org/pkg/plugin/
- isaachier 8y agoSuggesting another language implies that language is essentially just a variant of C and can be used in any situation as C. The OP was asking why there is no (mainstream?) variant of C with built-in memory safety. Suggesting Go implies Go is a direct replacement for C in most cases, which it is not. Regarding plugins, yes that is the package I am referring to. The idea of dynamic loading is completely ignored in the Go programming language but it is used in many, many other languages (i.e. Java, Python, Lua). Go's support for this feature is lacking and should be fixed for it to interact with other languages.