The one disadvantage I've encountered in C is an example like:
const char *a_s[] = {
"abc",
"def"
"ghi"
}
The missing comma in the initializer list is not diagnosed
but causes an unwanted initialization.
In Chapel:
var a_s = [
"abc",
"def"
"ghi"
];
seems similar.
So, I guess I agree with Michael here.
TMacD
On Thu, 9 Mar 2017, Michael Ferguson wrote:
> Hi -
>
> On 3/9/17, 2:10 PM, "Brad Chamberlain" <[email protected]> wrote:
>
>>
>> To provide a bit more context: I find the ability to split string
>> literals across lines in C (by closing the string and re-opening it on
>> the
>> next line) to be a really valuable feature and created this issue to
>> propose that we do the same for Chapel a few days ago.
>
> Doesn't
>
> writeln("this is the first line here " +
> "this is the second line here");
>
> cover this use-case already? This is how you'd do it in Java
> so I don't think it's ridiculous or anything. Param string folding
> should take care of it.
>
> Cheers,
>
> -michael
>
>>
>> That said, I didn't want Saurabh to dive into it only to find that it
>> didn't have broad support across the team. So if you want to support or
>> push back against the feature, please see the issue. I couldn't think of
>> a reason not to support it, but maybe I'm missing something.
>>
>> -Brad
>>
>>
>> On Thu, 9 Mar 2017, Saurabh Sood wrote:
>>
>>> Hi,
>>>
>>> I wanted to know if it would be useful to tackle issue #5501
>>> <https://github.com/chapel-lang/chapel/issues/5501>.
>>> How often is that feature used? And would it be helpful to many people?
>>>
>>> Regards,
>>> Saurabh Sood
>>>
>>
>> --------------------------------------------------------------------------
>> ----
>> Announcing the Oxford Dictionaries API! The API offers world-renowned
>> dictionary content that is easy and intuitive to access. Sign up for an
>> account today to start using our lexical data to power your apps and
>> projects. Get started today and enter our developer competition.
>> http://sdm.link/oxford
>> _______________________________________________
>> Chapel-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/chapel-developers
>
> ------------------------------------------------------------------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford
> _______________________________________________
> Chapel-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chapel-developers
>
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers