Replies: 3 comments 1 reply
-
|
Hello o7 A lot of the design of the language usually comes down to similarity and familiarity with C. So while some syntax has been changed, it is still pretty close C's syntax. C3 is intended to be a better C, essentially adding new features and semantics on top of C while keeping as close to it as possible, to make migration and working along side C easier. |
Beta Was this translation helpful? Give feedback.
-
|
Like Caleb is saying, the intent is to keep close to C syntax as much as possible. The Languages that have "type last" functions usually do the same for variable declarations and use this to simplify the grammar. C3 doesn't do that (variable declaration with type last), so just doing it for functions would also be fairly inconsistent. This is not to say that "type last" is bad in any way. It's just too far from C syntax. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, with "type last" I also meant the variable declaration to be consistent. I see the compatibility with C has a higher priority. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
first, I like the syntax of C3.
Why did you choose to use the C-stlye declaration for C3?
IMO the Pascal-style syntax has better readability.
Beta Was this translation helpful? Give feedback.
All reactions