Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Is Ruby slow?
This discussion has been closed.
Comments
class HelloWorld def initialize puts "Hello, world" end end # we can instantiate the class in the same script outside the class # definition hw = HelloWorld.new
Save as hello.rb and then run it with
$ ruby hello_class.rb
Here endeth the first lesson.
PS: I know now what I do because I copy and paste from here.
Here's his reply to me (I don't think he'd care that I posted it here, he actually probably appreciates the exposure), and it includes bits and pieces of my own e-mail to him.
That's BOO, not Python.
EDIT: And I don't believe VB has ever had closures of any kind. I do see them used in Javascript a bunch though.
def foo(): def myClosure(message): print message return myClosure def bar(): myClosure = foo() myClosure("Hello, world!")
The author of that book seems to be under the impression that lambdas are the only way to pass functions around in python.