Skip to content

Commit 376b08c

Browse files
committed
docs: added module procedure attribute ordering convention in Style Guide
1 parent fb7c9f5 commit 376b08c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

STYLE_GUIDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ focus on the semantics of the proposed changes rather than style and formatting.
6161
```
6262
When defining many arrays of the same dimension, `dimension` can be used as an exception if it makes the code less verbose.
6363
* If the `optional` attribute is used to declare a dummy argument, it should follow the `intent` attribute.
64+
* For module procedures, declare attributes before the `module` keyword for better retro compatibility:
65+
Use this:
66+
```
67+
pure module function example()
68+
```
69+
instead of:
70+
```
71+
module pure function example()
72+
```
6473

6574
## End <scope> block closing statements
6675

0 commit comments

Comments
 (0)