libuv / help

Need help with libuv? Post your question here.
28 stars 7 forks source link

why is libuv not written by c++? #169

Open anlexN opened 4 years ago

anlexN commented 4 years ago
cjihrig commented 4 years ago

I think it's written in plain C for maximum portability. Node.js is also not the only consumer to consider.

anlexN commented 4 years ago

i think portability is not so important. c++ also have very large portability, and microsoft widely support c++, not c.

anlexN commented 4 years ago

100% sure that microsoft only support some standard C, so C is not more portability than C++. so i think libuv can be rewritten by C++ so that libuv source code can be more wonderful and let me read less code.

twose commented 3 years ago

100% sure that microsoft only support some standard C, so C is not more portability than C++. so i think libuv can be rewritten by C++ so that libuv source code can be more wonderful and let me read less code.

I do not think so, not everyone likes C++, at least l am not. And the source code of libuv is great, it is one of the best learning projects of C language. If you're right, I think that maybe all of the C projects need to be refactored to C++ :)

bsergean commented 3 years ago

If you're looking for a C++ libuv binding take a look at https://github.com/skypjack/uvw

anlexN commented 3 years ago

@bsergean can you anwser this issue?