question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for prefixed `std::` in C++

See original GitHub issue

As well all know, if you write using namespace std;, you’re a plebe.

Please add support for idiomatic C++ in Python.

std::cout << "Hello, C++ pedant!\n";

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bl4ckb0necommented, Jul 20, 2017

And the support of std::printf because std::cout is for the plebs.

1reaction
HarkonenBadecommented, Jul 25, 2017

It’s more that :: is not a valid part of an identifier in python, and is not any other sort of valid syntactic construct. So you couldn’t have std::cout be the name of an object, either directly or indirectly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When using standard C functions in C++, is the "std::"
When use standard C function in C++, should we prefix every function with std:: ? for example (file name: std.C ): #include <cstdio>...
Read more >
C Coding Standard
It may be useful to use a meaningful prefix for each member name. ... Adding a comment to closing braces can help when...
Read more >
Clang Compiler User's Manual
The Clang Compiler is an open-source compiler for the C family of programming languages, aiming to be the best in class implementation of...
Read more >
Built-in options - The Meson Build system
Built-in options. Meson provides two kinds of options: build options provided by the build files and built-in options that are either universal options, ......
Read more >
Prefix Sum Array - Implementation and Applications in ...
C++ program for Implementing prefix sum array ... using namespace std;. // Fills prefix sum ... Adding present element with previous element.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found