Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In this simple script you can, but eventually you need an loop or something and you realize you're kind of stuck:

before_loop; while something: step1; step2; after_loop;

Note that after_loop is still inside the loop. Also you can't have multiple colons on the same line, so this doesn't work either:

if test: do_this; else: do_that

That gives a syntax error



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: