3 ms·
Because it is based on LLVM and the main LLVM API is C++ based. And no other language has good C++ interoperation. Yes other languages have LLVM bindings, but
by trishume 11y ago
Because it is based on LLVM and the main LLVM API is C++ based. And no other language has good C++ interoperation.
Yes other languages have LLVM bindings, but they aren't as comprehensive as actually linking to the LLVM C++ API.
Source: Have written a (toy-ish) compiler with LLVM