cndreisbach / funl

FunL is a function-level programming language implemented in Javascript.
The Unlicense
6 stars 0 forks source link

FunL is impractical without side effects #3

Open cndreisbach opened 11 years ago

cndreisbach commented 11 years ago

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.

cndreisbach commented 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.