5 ms·
The best bit is this excerpt from the standard library (2019): fn download_file(url, out string) { // println('\nDOWNLOAD FILE $out url=$url') //
by rozab 5y ago
The best bit is this excerpt from the standard library (2019):
fn download_file(url, out string) {
// println('\nDOWNLOAD FILE $out url=$url')
// -L follow redirects
// println('curl -L -o "$out" "$url"')
os.system2('curl -s -L -o "$out" "$url"')
// res := os.system('curl -s -L -o "$out" "$url"')
// println(res)
}
Here's what that file looks like today: https://github.com/vlang/v/blob/master/vlib/net/http/download_nix.c.v https://github.com/vlang/v/blob/master/vlib/net/http/downloa...
- amedvednikov 5y agoNo, this file is no longer used. We have a fully working net module: https://github.com/vlang/v/tree/master/vlib/net/http https://github.com/vlang/v/tree/master/vlib/net/http
- pwdisswordfish8 5y agoIn that case, you ought to be mocked for making a mess of the repository by keeping unused files in it.
- chousuke 5y agoCome on, that's just mean. I don't really understand the negativity against V; is there something wrong with setting crazy goals if you're actually working towards them?
- junon 5y agoWhy should anyone be mocked for anything? How is that conducive to the conversation? You should rethink how you convey your ideas, IMO.
- SahAssar 5y agoI don't get it, is that file's function bodies just comments now? Or does /* */ not mean a comment in V?
- Spivak 5y agoI really don't understand why everyone is making fun of what is clearly a stub implementation. Have we not all written code like this so we can go work on some other part of the code that depends on this?
- vlang1dot0 5y agoMost of us also don't splash it all over hn/reddit like it's the second coming of Christ.
- delian66 5y agoMost of us also do not name ourselves based on things we hate...
- junon 5y agoYou're early obsessed and make it a large portion of your existence to hate something with such a deep passion. It's astonishing.
- vlang1dot0 5y agoFrankly it's rather amusing.
- delian66 5y agoThe people that are making fun of V, instead of helping, at this point are nothing more than hateful jerks imho. They just want to hate something - if not V, it would be something else.