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;
}
(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;
}