4 ms·
You won't be able to do numeric stuff with these proposals as well. You would still be missing operator overloading and parameter of integer types, which are th
by giovannibajo1 8y ago
You won't be able to do numeric stuff with these proposals as well. You would still be missing operator overloading and parameter of integer types, which are the basis of any generic numeric code.
- garfij 8y agoTrue about no operator overloading, but that's just syntactical sugar for functions. I believe you can get integer parameter types by using something like the `convertible` contract seen here https://go.googlesource.com/proposal/+/master/design/go2draft-contracts.md#passing-explicit-types-to-a-contract https://go.googlesource.com/proposal/+/master/design/go2draf... (unless I'm mistaking what you are saying)
- sanxiyn 8y agoI believe you are mistaking. C++ allows things like std::array<int, 3>, where 3 is parameter of integer types.