diff --git a/README.md b/README.md index 11abbc4..b52abeb 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,13 @@ Practice based on cppfront +## Cpp2 + +- Repository: +- Documentation: + + + ## License MIT License, for more details, see the [LICENSE](https://github.com/msclock/cppfront-practice/blob/master/LICENSE) file. diff --git a/src/regressoin/src/main.cpp2 b/src/regressoin/src/main.cpp2 index 11ada2e..29b751d 100644 --- a/src/regressoin/src/main.cpp2 +++ b/src/regressoin/src/main.cpp2 @@ -1,5 +1,12 @@ +std: namespace = { + println: (args...) = { + (std::cout << ... << args) << "\n"; + } +} + hello: (msg: std::string_view) = { std::cout << "Hello, (msg)$!\n"; + std::println(msg); } main: () = {