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: Anonymous 2013-08-01 2:59

>>4
defmethod style signatures are better, since you can write lisp style macros that expand to them.
typename:varname dont impede macros. Moreover, they provide strong typing with (intern varname "typename") being constructor, while symbol-package and symbol-string are accessors.

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