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

Global Scope

Name: Anonymous 2011-10-20 20:48

Is it really necessary to have global scope for REPL to work?

Name: Anonymous 2011-10-21 0:47

If you had no global scope in when using a REPL, then non of your statements could affect one another. You could just type the entire program in one line though.


(define wo 'wah)
(display wo)



((lambda (wo)
  (display wo))
'cool)



for(int i = 1; i < 10; i++)
{
  printf("%d ", i);
}
printf("\n");



((lambda (self i)
   (self self i)
   (newline))
 (lambda (self i)
   (if (< i 10)
     (begin (display i)
            (display " ")
            (self self (+ 1 i)))))
 1)

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