The Cscript Style Guide
"C is a high-level language. Stop treating it like Assembly with seatbelts."
1. Philosophy
Cscript (C Scripting Language) is valid C that brings the development speed of Python to the raw performance and portability of C. By leveraging the full power of the GCC89 standard (and the auto keyword), Cscript removes the cognitive load of "types," "prototypes," and "manual memory management," allowing the developer to focus on logic.
It is dynamically typed, garbage collected (by the OS), and highly modular. It is valid C, as K&R intended.
2. Quick Start: Hello World
/* Main is the entry point. No headers: the linker provides us with all functions we need. */ main () { https : //github.com/domenukk/CScript auto name = "World" ; auto count = 3 ; while ( count -- > 0 ) { greet ( name ); } } greet ( who ) { printf ( "Hello, %s!
" , who ); }
3. The Universal Type System
In Cscript, you do not declare types. You declare storage.
... continue reading