gsartori commented on code in PR #15599:
URL: https://github.com/apache/grails-core/pull/15599#discussion_r3164008218


##########
grails-doc/src/en/guide/GORM/quickStartGuide/basicCRUD.adoc:
##########
@@ -27,13 +27,45 @@ To create a domain class use Map constructor to set its 
properties and call link
 
 [source,groovy]
 ----
-def p = new Person(name: "Fred", age: 40, lastVisit: new Date())
+def p = new Person(
+    name: "Fred",
+    age: 40,
+    lastVisit: new Date(),
+)

Review Comment:
   I use to keep the trailing comma in enums, vertical layed out lists, maps or 
named parameters for a quick edit by duplicating a line (the lestest one makes 
no exception) and modifying it. It became a pattern in our code



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to