alt.hn

1/23/2026 at 3:23:47 AM

The Cscript Style Guide – CScript is the standard C

https://github.com/domenukk/CScript

by domenukk

1/23/2026 at 8:59:08 AM

Very high quality shitposting. Approved.

by eqvinox

1/23/2026 at 4:42:36 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?

by irishcoffee

1/23/2026 at 5:15:30 AM

It's valid K&R since everything defaults to int. The linker will match the symbols sans prototype. That wasn't obsoleted until C23.

by kevin_thibedeau

1/25/2026 at 2:57:27 AM

TIL, thank you! (How embarrassing haha)

by irishcoffee

1/23/2026 at 5:03:34 AM

It is valid C89. greet is automatically declared as

    int greet();
at call site.

by oguz-ismail2

1/23/2026 at 10:15:52 AM

Given that CScript is the name of the "Console Based Script Host" for Windows, that can run JScript (Microsoft's old variant of JavaScript) and VBScript, and supposedly other pluggable scripting languages (I've never seen one in the wild), calling this "Cscript" is not a good idea.

by gschizas

1/23/2026 at 3:12:52 PM

It's a joke language, I doubt it will cause any significant ambiguity ever.

by bheadmaster

1/23/2026 at 6:08:27 AM

> 0[str] is valid and asserts dominance.

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

by krylon

1/23/2026 at 3:31:20 AM

It looks like the B programming language.

by leumassuehtam

1/23/2026 at 5:58:07 AM

To compile CScript to C:

apt install gcc-dev

cat hello.cs > hello.c

gcc hello.c

by TZubiri

1/23/2026 at 9:02:43 AM

Nope… you need to follow the instructions:

  gcc -std=gnu89 -m32 -fno-builtin
because GCC defaults to ISO C23 these days, and that will not work, and neither will anything where int and a pointer aren't the same size :)

by eqvinox