From: mame@... Date: 2018-12-18T07:14:32+00:00 Subject: [ruby-core:90600] [Ruby trunk Misc#15431] Hashes and arrays should not require commas to seperate values when using new lines Issue #15431 has been updated by mame (Yusuke Endoh). It has been already proposed at #10528. ---------------------------------------- Misc #15431: Hashes and arrays should not require commas to seperate values when using new lines https://bugs.ruby-lang.org/issues/15431#change-75754 * Author: nsuchy (Nathaniel Suchy) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Ruby should not require commas for hash and array values if using new lines. I think the syntax would look cleaner without. **Example** ~~~ myHash = { :key => ���value���, :anotherKey => ���another value��� } ~~~ **Could be** ~~~ myHash = { :key => ���value��� :anotherKey => ���another value��� } ~~~ **And** ~~~ myArray = [ 1, 2, 3 ] ~~~ Could be: ~~~ myArray = [ 1 2 3 ] ~~~ The syntax looks a bit cleaner, with the new lines is there a need to require a comma? I look forward to hearing the community���s thoughts on this idea :) -- https://bugs.ruby-lang.org/ Unsubscribe: