From: Peter Hickman Date: 2010-07-07T17:36:06+09:00 Subject: Re: Hashes don't allow preceding commas by design? --0016363b9b4a5de6ff048ac80f78 Content-Type: text/plain; charset=ISO-8859-1 It's not hashes it is the parser in general. When it parses a line (up to the newline) if the line appears compete then the parser expects a new statement on the next line. So with 1: => a, b = 1, 2: => 2 Line 1 is incomplete so the parser treats line 2 as a continuation of line 1. But with 1: => a, b = 1 2: => ,2 Line 1 is complete in that the line contains a valid Ruby statement so the parser expects the next line to be a new statement, line 2 is in error because no valid Ruby statements start with a comma. This is what you are seeing in your examples. --0016363b9b4a5de6ff048ac80f78--