Skip to content

Comments

Set comma expression deprecation release and implicit string concatenation#1487

Merged
AndrejMitrovic merged 2 commits intodlang:masterfrom
mathias-lang-sociomantic:fix-3827
Oct 24, 2016
Merged

Set comma expression deprecation release and implicit string concatenation#1487
AndrejMitrovic merged 2 commits intodlang:masterfrom
mathias-lang-sociomantic:fix-3827

Conversation

@mathias-lang-sociomantic
Copy link
Contributor

Please do not merge until dlang/dmd#6155 is merged.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
3827 Warn against and then deprecate implicit concatenation of adjacent string literals

@mathias-lang-sociomantic mathias-lang-sociomantic changed the title [BLOCKED] Set comma expression deprecation release and implicit string concatenation Set comma expression deprecation release and implicit string concatenation Sep 28, 2016
@mathias-lang-sociomantic
Copy link
Contributor Author

The DMD P.R. was merged 🎉

@mathias-lang-sociomantic
Copy link
Contributor Author

Pingity ping

@AndrejMitrovic
Copy link
Contributor

Is the build failure unrelated to the PR, can we merge regardless?

deprecate.dd Outdated
to spot bugs, for example:)

---
string[] arr = [ "Hello", "buggy" "World" ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use a more realistic example. The classic mistake is made when the list of strings is separated on each line:

string[] names =
[
    "Anna",
    "Michael"
    "Emma",
    "David"
];

@AndrejMitrovic
Copy link
Contributor

Is the build failure unrelated to the PR, can we merge regardless?

Ah all pulls are failing, nevermind me.

@mathias-lang-sociomantic
Copy link
Contributor Author

Updated, sorry for the delay

deprecate.dd Outdated
string foo = "Hello" "World";
---

This feature is handy for long string that spans multiple lines,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for a long

@AndrejMitrovic
Copy link
Contributor

Can you fix the missing a and I'll merge?

@mathias-lang-sociomantic
Copy link
Contributor Author

Fixed

Copy link
Contributor

@AndrejMitrovic AndrejMitrovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@AndrejMitrovic AndrejMitrovic merged commit 8515749 into dlang:master Oct 24, 2016
@mathias-lang-sociomantic mathias-lang-sociomantic deleted the fix-3827 branch October 24, 2016 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants