Project

General

Profile

Feature #6265

Remove 'useless' 'concatenation' syntax

Added by rosenfeld (Rodrigo Rosenfeld Rosas) over 8 years ago. Updated about 4 years ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:44156]

Description

What is wrong with this code:

some_method 'argument1', 'argument2' 'argument3'

Yes, the missing colon, but it is not always easy to notice that...

What is this ('concatenation' 'syntax') useful for?

Why writing ('some ' 'concatenation') instead of 'some concatenation'?

A missing colon between string arguments can lead to some bugs that may be hard to find, specially if the arguments are optional.

And I can't see any useful case where this allowed syntax for concatenation would help.

Also available in: Atom PDF