Open cndreisbach opened 11 years ago
Let's think about printing, either to STDOUT or to a file handle. We could have a primitive print
function that takes a value, prints it, and then returns that same value. print
prints to STDOUT. I'm not sure how I'd handle printing elsewhere or doing something more low-level.
If we cannot even print, then that's pretty silly. FunL is supposed to be impractical, but I'd like to write a toy program in it.
We need a syntax for side effects and some way to implement new ones.