What I would like in “borrowed” into Ruby

C Style comments

  /* comments */
  // and those while we're here.

C style multiline curly braces (this actually works, but didn’t think it would due to following conventions, but in some case could make code easier to read)

  {
     // code here ....
  }

Modula 3 style named end blocks (possible activated via a strict mode)

  def method_name
    ...
  end method_name.

Pascal style “with” blocks

  with the_object do
    push << "hello"
    splice something
  end

can you think of anything you’d like borrow from another language into your favourite language?

Comments are closed.