Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Replacing C/C++ with LISP.

Name: Anonymous 2013-08-01 2:32

Consider the following way to use Common Lisp in place of C/C++, without any custom reader macros:

(to main int:arg char:argv
  ! printf "Hello, World!"
  ! return 0
  )


I.e. packages take role of builtin types and structs, also containing definition for overloadable `+` and `-` and template generics, so a compiler could be implemented without much fuzz, using already present Common Lisp framework.

It would also look much clearer than standard C/C++:
int main(int argc, char **argv) {
  printf ("Hello, World!");
  return 0;
}

Name: Ariel Shalom 2013-08-03 22:10

>>79
shalom!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List