This is an example from a book I am reading:
volume = begin
len = 10
breadth = 20
height = 30
len * breadth * height
end
Why do I need compound expressions?? I could just write volume = 10 * 20 * 30 or volume = len * breadth * height or write a function for that or an anonymous function...
Why do I use begin and end? Or the probably better question: When do I use them, as I guess the example above from the book is probably not very good.