mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update README.md
Added an example.
This commit is contained in:
committed by
GitHub
parent
39c7c5d0b6
commit
340141bb76
13
README.md
13
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user