ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0008101 | Part 01: TTCN-3 Core Language | Technical | public | 09-08-2022 14:50 | 04-01-2023 13:11

Reporter | Matthias Simon |
Assigned To | Jens Grabowski |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | Core Language Spec
Source (company - Author) | Nokia - Matthias Simon

Summary | 0008101: Allow trailing comma
Description | Allowing a trailing comma in comma separated lists, such as record members, would be a convenient relaxation. For example: type record Point { integer x, integer y, integer z, // <-- trailing comma } An optional trailing comma increases code uniformity and improves readability (of code-diffs).
Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR-8101-Res-221216.docx (147,954) 16-12-2022 11:42 http://oldforge.etsi.org/mantis/file_download.php?file_id=4100&type=bug CR-8101-2.docx (199,428) 20-12-2022 11:23 http://oldforge.etsi.org/mantis/file_download.php?file_id=4110&type=bug

Issue History
Date Modified | Username | Field | Change
09-08-2022 14:50 | Matthias Simon | New Issue |
16-08-2022 12:36 | Jens Grabowski | Note Added: 0016219 |
16-08-2022 12:36 | Jens Grabowski | Assigned To | => Jens Grabowski
16-08-2022 12:36 | Jens Grabowski | Status | new => assigned
16-08-2022 14:14 | Jens Grabowski | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
16-12-2022 11:42 | Jens Grabowski | File Added: CR-8101-Res-221216.docx |
16-12-2022 11:45 | Jens Grabowski | Note Added: 0016428 |
16-12-2022 11:45 | Jens Grabowski | Assigned To | Jens Grabowski => Tomas Urban
20-12-2022 10:50 | Tomas Urban | File Added: CR-8101-2.docx |
20-12-2022 10:50 | Tomas Urban | Assigned To | Tomas Urban => Jens Grabowski
20-12-2022 10:58 | Tomas Urban | File Deleted: CR-8101-2.docx |
20-12-2022 10:58 | Tomas Urban | Assigned To | Jens Grabowski => Tomas Urban
20-12-2022 11:23 | Tomas Urban | File Added: CR-8101-2.docx |
20-12-2022 11:25 | Tomas Urban | Note Added: 0016436 |
20-12-2022 11:25 | Tomas Urban | Assigned To | Tomas Urban => Jens Grabowski
20-12-2022 11:25 | Tomas Urban | Status | assigned => confirmed
20-12-2022 12:34 | Jens Grabowski | Status | confirmed => resolved
20-12-2022 12:34 | Jens Grabowski | Resolution | open => fixed
04-01-2023 13:11 | Jens Grabowski | Note Added: 0016466 |
04-01-2023 13:11 | Jens Grabowski | Status | resolved => closed

Notes

(0016219)
Jens Grabowski
16-08-2022 12:36

TTF discussion: Proposal appreciated. Proposal needed. Proposal maybe according to A1.2

(0016428)
Jens Grabowski
16-12-2022 11:45

Tomas, please check. I added round about 80 optional commas, i.e., [","], but some rules look a little bit strange. Please check carefully.

(0016436)
Tomas Urban
20-12-2022 11:25

I made some changes in the document
1. Not all comma-separated lists ends with } or ). Some of them are part of statements or declaration and the terminator is then { or ; Examples: variable declaration, port type message list. I changed the text accordingly.
2. I removed the trailing comma from statements with a fixed number of elements. It doesn't make much sense to have it there. List of changed rules:
123. PatternElement
129. PatternQuadruple
156. MatchOp
287. SingleConnectionSpec
298. UnmapStatement
307. SetEncodeStatement
333. PortRaiseOp
429. Quadruple
3. I changed the grammar of some rules allowing the trailing comma only in cases when a parameter is missing. List of changed rules:
270. CreateOp
380. CatchOpParameter
557. DecodedFieldType
4. I added the trailing comma to the rule 4. LanguageSpec
Please check the changes I made and if there are no major issues, I think we could accept the proposal.

(0016466)
Jens Grabowski
04-01-2023 13:11

Implemented according to resolution document.