ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:66371] [CommonRuby - Feature #10528] [Open] Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
       [not found] <redmine.issue-10528.20141120111435@ruby-lang.org>
@ 2014-11-20 11:14 ` alexey.muranov
  2014-11-20 17:20 ` [ruby-core:66381] [CommonRuby - Feature #10528] " alexey.muranov
  2015-07-09  5:11 ` [ruby-core:69910] " 2851820660
  2 siblings, 0 replies; 3+ messages in thread
From: alexey.muranov @ 2014-11-20 11:14 UTC (permalink / raw)
  To: ruby-core

Issue #10528 has been reported by Alexey Muranov.

----------------------------------------
Feature #10528: Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
https://bugs.ruby-lang.org/issues/10528

* Author: Alexey Muranov
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Since the seemingly reasonable proposal #8956 has been rejected because it "diverged so far from the original", i will dare to propose another version here.

I suggest to automatically convert line breaks inside parentheses `(...)`, inside  "hashy" braces `{...}`, inside brackets `[...]`, and inside block argument lists `|...|`, if they are not preceded with a comma and skipping empty space, into a comma, while all other line breaks that are not preceded with a semicolon into a semicolon (skipping empty lines).  Unless, of course, the line break is preceded with `\` or followed by a dot `.`.

I would be possible to write then:

```ruby
todo = [ 'shopping'
         'cinema'
         'restaurant' ]

rules = { 'evil' => 'bad'
          'kind' => 'good' }
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:66381] [CommonRuby - Feature #10528] Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
       [not found] <redmine.issue-10528.20141120111435@ruby-lang.org>
  2014-11-20 11:14 ` [ruby-core:66371] [CommonRuby - Feature #10528] [Open] Allow line breaks instead of commas in arrays, hashes, argument lists, etc alexey.muranov
@ 2014-11-20 17:20 ` alexey.muranov
  2015-07-09  5:11 ` [ruby-core:69910] " 2851820660
  2 siblings, 0 replies; 3+ messages in thread
From: alexey.muranov @ 2014-11-20 17:20 UTC (permalink / raw)
  To: ruby-core

Issue #10528 has been updated by Alexey Muranov.


I forgot to mention other usual cases when lines should be implicitly continued: after a dot, after an operator symbol, etc.

----------------------------------------
Feature #10528: Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
https://bugs.ruby-lang.org/issues/10528#change-50026

* Author: Alexey Muranov
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Since the seemingly reasonable proposal #8956 has been rejected because it "diverged so far from the original", i will dare to propose another version here.

I suggest to automatically convert line breaks inside parentheses `(...)`, inside  "hashy" braces `{...}`, inside brackets `[...]`, and inside block argument lists `|...|`, if they are not preceded with a comma and skipping empty space, into a comma, while all other line breaks that are not preceded with a semicolon into a semicolon (skipping empty lines).  Unless, of course, the line break is preceded with `\` or followed by a dot `.`.

I would be possible to write then:

```ruby
todo = [ 'shopping'
         'cinema'
         'restaurant' ]

rules = { 'evil' => 'bad'
          'kind' => 'good' }
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:69910] [CommonRuby - Feature #10528] Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
       [not found] <redmine.issue-10528.20141120111435@ruby-lang.org>
  2014-11-20 11:14 ` [ruby-core:66371] [CommonRuby - Feature #10528] [Open] Allow line breaks instead of commas in arrays, hashes, argument lists, etc alexey.muranov
  2014-11-20 17:20 ` [ruby-core:66381] [CommonRuby - Feature #10528] " alexey.muranov
@ 2015-07-09  5:11 ` 2851820660
  2 siblings, 0 replies; 3+ messages in thread
From: 2851820660 @ 2015-07-09  5:11 UTC (permalink / raw)
  To: ruby-core

Issue #10528 has been updated by 11 22.


http://www.software-rating.com/
http://www.smartlogi.com/  
http://www.shareorder.com/  
http://www.gzs168.com/  
http://www.aimooimage.com/    
http://www.chinatowngate.net/

http://www.inspiredhypnosis.co.uk/daocplat.html
http://the303plan.com/tibiagoldforsale.html

----------------------------------------
Feature #10528: Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
https://bugs.ruby-lang.org/issues/10528#change-53329

* Author: Alexey Muranov
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Since the seemingly reasonable proposal #8956 has been rejected because it "diverged so far from the original", i will dare to propose another version here.

I suggest to automatically convert line breaks inside parentheses `(...)`, inside  "hashy" braces `{...}`, inside brackets `[...]`, and inside block argument lists `|...|`, if they are not preceded with a comma and skipping empty space, into a comma, while all other line breaks that are not preceded with a semicolon into a semicolon (skipping empty lines).  Unless, of course, the line break is preceded with `\` or followed by a dot `.`.

I would be possible to write then:

```ruby
todo = [ 'shopping'
         'cinema'
         'restaurant' ]

rules = { 'evil' => 'bad'
          'kind' => 'good' }
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-09  4:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-10528.20141120111435@ruby-lang.org>
2014-11-20 11:14 ` [ruby-core:66371] [CommonRuby - Feature #10528] [Open] Allow line breaks instead of commas in arrays, hashes, argument lists, etc alexey.muranov
2014-11-20 17:20 ` [ruby-core:66381] [CommonRuby - Feature #10528] " alexey.muranov
2015-07-09  5:11 ` [ruby-core:69910] " 2851820660

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).