>> less ';' like in javascript
You should read the book by Douglas Crockford - JavaScript: The Good Parts, p102 (Appendix A: Awful Parts), this is not fun.
You should read the book by Douglas Crockford - JavaScript: The Good Parts, p102 (Appendix A: Awful Parts), this is not fun.
do { foo; bar; baz }
or: do
foo
bar
baz
and they would both be equivalent. myarray.each {|x| func_a(x); func_b(x); puts x }
is equivalent to myarray.each do |x|
func_a(x)
func_b(x)
puts x
end