Re: OT: Why is C so popular?
On Sat, 2003-08-30 at 02:38, Steve Lamb wrote:
> On Sat, 30 Aug 2003 00:28:24 -0500
> Ron Johnson <ron.l.johnson@cox.net> wrote:
> > Python is written in C (no surprise there!), but what is surprising
> > to some is that so many C-isms are in Python. For example:
> > IF FOO == BAR:
> > PRINT 'YES'
>
> Ah yes, but try to to do this fun one:
>
> if foo = bar:
> print 'yes'
Here's an area where the BD4L explicitly departed from Algol-like
languages.
>>> foo = 5
>>> bar = 8
>>> if foo = bar: print 'yes'
File "<stdin>", line 1
if foo = bar: print 'yes'
^
SyntaxError: invalid syntax
--
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA
"Whatever may be the moral ambiguities of the so-called
demoratic nations and however serious may be their failure to
conform perfectly to their democratic ideals, it is sheer moral
perversity to equate the inconsistencies of a democratic
civilization with the brutalities which modern tyrannical states
practice."
Reinhold Nieburhr, ca. 1940
Reply to: