diff --git a/RFCs/FS-1019-implicitly-add-the-module-suffix.md b/RFCs/FS-1019-implicitly-add-the-module-suffix.md index f16e0a3d..7253e94d 100644 --- a/RFCs/FS-1019-implicitly-add-the-module-suffix.md +++ b/RFCs/FS-1019-implicitly-add-the-module-suffix.md @@ -10,22 +10,20 @@ This RFC covers the detailed proposal for this suggestion. # Summary [summary]: #summary -The ``[]`` attribute is so commonly used on top of modules. But it is verbose and tedious. +The ``[]`` attribute is so commonly used on top of modules. But it is verbose and tedious. This RFC proposes that the ``Module`` suffix be added implicitly if a type and a module have the same name within the same namespace declaration group. For example, for the code below the compiled name of ``module A`` will be ``AModule``, just as if the attribute had been used. -``` - type A() = - member x.P = 1 - +```fsharp +type A() = + member x.P = 1 - module A = - let create() = 1 +module A = + let create() = 1 ``` - # Motivation [motivation]: #motivation