From: ruby-core@... Date: 2016-12-11T14:40:34+00:00 Subject: [ruby-core:78591] [Ruby trunk Bug#13022][Rejected] Nested array syntax error returns nil Issue #13022 has been updated by Marc-Andre Lafortune. Status changed from Open to Rejected ---------------------------------------- Bug #13022: Nested array syntax error returns nil https://bugs.ruby-lang.org/issues/13022#change-61976 * Author: Harry Whelchel * Status: Rejected * Priority: Normal * Assignee: * ruby -v: 2.3.3 * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- If you leave out a comma in a nested array, ruby returns `nil` instead of raising a SyntaxError. Is this expected behavior? 1. Create a nested array with a missing comma: [[1,3], [5,6] [11, 15], [17,22]] #=> [[1, 3], nil, [17, 22]] -- https://bugs.ruby-lang.org/ Unsubscribe: