From: Rodrigo Rosenfeld Rosas Date: 2011-12-16T12:43:53+09:00 Subject: [ruby-core:41687] Re: Documentation of the language itself (syntax, meanings, etc) Em 16-12-2011 01:39, Rodrigo Rosenfeld Rosas escreveu: > ...def my_method(b, callback#Lambda) > # callback here can't be a proc so you can be sure that it won't > return from your method > # I'm using argument#type as a possible syntax for indicating the > type checking made by the Ruby interpreter... > # I'm also supposing that proc{} would create a Proc, while > lambda{} would create a Lambda... > end Please ignore the callback#Lambda, as # is already used by comments. It is late here and I'm already tired :) Maybe "callback <- Lambda" or anything else... Don't take this seriously, it was used only to demonstrate an idea. I don't really believe Ruby will support optionally typed variables, arguments and return values any day in the next few years, at least...