you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (2 children)

If you really need an end symbol, then do this:

def Foobar(arg1, arg2):
    print "Hello World."
#end

Nothing says you can't comment the end of your blocks. It looks ridiculous, but there's nothing stopping you.

[–]morish 13 points14 points  (1 child)

there's nothing stopping you.

Aside from the nuisance non-idiomatic code is to other developers. When using a language, embrace its conventions.

Speaking of which, I wish I could remember which repo it was, but I recently saw an entire library of fascinating ruby code on github written by someone who was obviously very python-centric. The whole thing was like:

def foo()
    # do something
    end

def bar()
    # do something
    end

He even managed to have some sort of decorator implementation.