Content deleted Content added
→Modern C++: new section |
|||
Line 14:
:As I wrote in the nomination, per [https://github.com/carbon-language/carbon-lang/issues/1689] and [https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/faq.md#why-isnt-there-a-carbon-language-logo] there is no Carbon language logo and they are deliberately avoiding creating one. So even if the image isn't deleted it should still be removed from here as pretending it is the logo is just misleading. [[User:Mathnerd314159|Mathnerd314159]] ([[User talk:Mathnerd314159|talk]]) 01:59, 28 September 2022 (UTC)
== Modern C++ ==
In modern C++ you can also use the -> for return type and specify it as int32_t (since 2011's C++11). https://godbolt.org/z/9vr9f9hzq
<pre>#include <iostream>
auto main() -> int32_t {
auto s = "Hello, World!";
std::cout << s;
return 0;
}</pre> [[Special:Contributions/194.207.86.26|194.207.86.26]] ([[User talk:194.207.86.26|talk]]) 17:18, 11 December 2022 (UTC)
|