Update README.md

Added an example.
This commit is contained in:
Christoffer Lerno
2020-09-21 13:38:45 +02:00
committed by GitHub
parent 39c7c5d0b6
commit 340141bb76

View File

@@ -15,6 +15,17 @@ C3 tries to be an alternative in the the C/C++ niche: fast and close to the meta
- Avoid "big ideas" & the "more is better" fallacy.
- Introduce some higher level conveniences where the value is great.
### Example code
```c++
module hello_world;
import std::io;
func void main()
{
io::printf("Hello, world!\n");
}
```
### In what ways do C3 differ from C?
@@ -114,4 +125,4 @@ the r/ProgrammingLanguages Discord: https://discord.gg/cfu4wdk
- If you wish to contribute with ideas, please file issues on the c3docs: https://github.com/c3lang/c3docs instead of the compiler.
- Discuss the language on discord to help iron out syntax.
- Stdlib work will soon start, do you want to help out building the C3 std lib?
- Do you want do do real compiler work? Everyone is welcome to contribute.
- Do you want do do real compiler work? Everyone is welcome to contribute.