Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Those cheeky logic languages!

59 views
Skip to first unread message

Jan Burse

unread,
Nov 9, 2012, 4:06:11 AM11/9/12
to
LoL, this made me laugh (in the interview section for Prolog):

"Prolog is a wonderful language, but until you drink the Kool-Aid, it
can give you some pretty weird results. I recall one of my first
experiments with Prolog, writing something along the lines of x = x + 1.
Prolog responded “no.” Languages don’t just say “no.” They might give
the wrong answer or fail to compile, but I had never had a language talk
back to me. So, I called Prolog support and said that the language had
said “no” when I tried to change the value of a variable. They asked me,
“Why would you want to change the value of a variable?” I mean, what
kind of language won’t let you change the value of a variable? Once you
grok Prolog, you understand that variables either have particular values
or are unbound, but it was unsettling at the time."

http://pragprog.com/book/btlang/seven-languages-in-seven-weeks

Dhu on Gate

unread,
Dec 5, 2012, 7:33:05 PM12/5/12
to
Hehe. I learned C after learning assembler and Prolog and this
business of casually (and indirectly) modifying assigned values
has always kinda bugged me ;)

Dhu

--
Ne obliviscaris, vix ea nostro voco.
0 new messages