ceylon icon indicating copy to clipboard operation
ceylon copied to clipboard

Relax comma rules to allow optional extra end comma

Open CeylonMigrationBot opened this issue 13 years ago • 7 comments

[@FroMage] I'd like us to relax grammar rules concerning end commas and allow optional trailing commas:

class Foo<A,
                   B,
                   C,
       >(A a,
           B b,
           C c,
         ){
 value seq = {
  a,
  b,
  c,
 };
 Foo<
  Integer,
  String,
  Character,
 >(
  1,
  "a",
  `b`,
 );
} 

This is a particularly terrible example, but allowing extra trailing commas is generally useful, so why not just allow it everywhere commas can be used?

[Migrated from ceylon/ceylon-spec#381]

CeylonMigrationBot avatar Aug 08 '12 09:08 CeylonMigrationBot

⚠️ No Changeset found

Latest commit: d7a8245cfc5382b3826a1f5e0d1ec64704468a52

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Mar 31 '24 04:03 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-reanimated-carousel ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 31, 2024 4:20am

vercel[bot] avatar Mar 31 '24 04:03 vercel[bot]