function definition below the Main #2057
benilaunchers
started this conversation in
Language design
Replies: 1 comment 1 reply
-
The decisions behind this are documented at https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/principles/information_accumulation.md and https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p0875.md. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello i wish you the best. does the function definition below the Main function not supported? like c++ i want to create my function down of the main and forward it top of the main. but in Carbon i get error of duplicate code. this is my simple test code
should we make this feature?
i think in single-file code, it will be more readable.
Beta Was this translation helpful? Give feedback.
All reactions