This is a joke
Introduction
Many new programmers are often confused about a very important concept in programming: the variable lifespan. For example, one could not understand why the variable “a” is “not defined” when it’s clearly there:
1 | int x=3; |
Another problem newcomers face when they are first presented callback functions are that they are not able to convert sequential code into callback functions. When the program gets complicated, it is common for a professional programmer to combine the callback functions and sequential coding. When this happens, newcomers may not know the correct order of execution, leading to frustration.
One more problem comes from the “impossible” mission for coding: naming things. Professional coder might use what are called “defensive programming” by naming variables weirdly, like just calling them q
fa
wps
sht
etc.
In order to make programming more accessible to beginners, we have developed the latest programming language: CLang
!
Naming things
To solve the problem with naming things, in CLang we force the variable name to include its type at the beginning (for int, long long, bool, byte, etc) or at the end (for complex types). Instead, you do not need to explicitly write out its type:
1 | iAge #int32 age |
Program Structures
In a standard program, we might write program in a sequential order:
1 | int main(){ |
However in CLang we force everything to have a callback function and the scope is defined explicitly using {}
! So no more sequential and the order of execution has no worries!
1 | mainFunc(){ //define Func called main |
The function are defined using the following syntax:
1 | nameF/nameFunc(parameters):returnType{ |
For example:
1 | absF(ia):int{ |
Defining a class is weird but understandable:
1 | class Animal{ |