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

What's the best current flavor of Lisp?

Name: McCarthy's Ghost 2015-06-25 21:22

And why is it Racket?

Name: Anonymous 2015-07-26 9:48

>>29
Wake me up when C and C++ looks something like this.
(def bit-bucket-writer
(proxy [java.io.Writer] []
(write [buf] nil)
(close [] nil)
(flush [] nil)))

(defmacro noprint
"Evaluates the given expressions with all printing to *out* silenced."
[& forms]
`(binding [*out* bit-bucket-writer]
~@forms))

(noprint
(println "Hello, nobody!"))

Name: Anonymous 2015-07-26 9:51

>>33
This does not look anything like lisp.

Name: Anonymous 2015-07-26 9:51

java.io.Writer
DROPPED

Name: Anonymous 2015-07-26 16:01

XML makes java an "acceptable lisp"

Name: Anonymous 2015-07-26 16:29

>>33
Wake up, >>33-cum.

bool AreParanthesesBalanced(string exp)
{ stack<char> S;
for(int i =0;i<exp.length();i++)
{ if(exp[i] == '(' || exp[i] == '{' || exp[i] == '[')
S.push(exp[i]);
else if(exp[i] == ')' || exp[i] == '}' || exp[i] == ']')
{ if(S.empty() || !ArePair(S.top(),exp[i]))
return false;
else
S.pop(); }}
return S.empty() ? true:false; }

Name: Anonymous 2015-07-26 17:22

return S.empty() ? true:false;

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