logoalt Hacker News

The Cscript Style Guide – CScript is the standard C

16 pointsby domenukktoday at 3:23 AM6 commentsview on HN

Comments

leumassuehtamtoday at 3:31 AM

It looks like the B programming language.

irishcoffeetoday at 4:42 AM

This is interesting, but I wouldn't say it is valid C. main() doesn't know about greet(auto s) and wouldn't be able to call it in valid C89, right?

show 2 replies
TZubiritoday at 5:58 AM

To compile CScript to C:

apt install gcc-dev

cat hello.cs > hello.c

gcc hello.c

show 2 replies
krylontoday at 6:08 AM

> 0[str] is valid and asserts dominance.

At this point I came dangerously close to spewing water all over my keyboard. :D