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

My 1st /prog/ram

Name: Anonymous 2009-03-11 19:52

So I took /prog/'s advice and started learning python:

Here is my first ever program that is not copypasted from the tutorial. (I went further by not ONLY having it say 'too high' or 'too low' or 'you guessed it')

Am I doing it right or is declaring 5 variables a waste of time?
Why cant I just say
if a < 5:
    print('way too low') #?
why does it have to be a variable?

Name: Anonymous 2009-03-11 22:23

What about the distinction between statements and expressions?
How about the lack of distinction between variable assignment and variable binding? Forcing you to use shitty var[0] hacks etc.
How about the lack of several common control structures such as do..while loops, real for loops, multilevel break/continue, switches etc? Also the complete lack of ways to make your own control structures (no macros, no monads, nothing).1
How about the lack of proper tail calls?
How about Guido being a total retard?

1 At the ll2 workshop some python guy wanted to add a with syntax that automatically opens and closes handles, even in the presence of exceptions etc. A 10 second macro in any lisp, but the python guy needed a bunch of programmers hacking on CPython for a month to get it done.

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