Skip to content

Commit

Permalink
code block formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothdeveloper authored Jul 5, 2016
1 parent 6d83866 commit 329b7e7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions RFCs/FS-1019-implicitly-add-the-module-suffix.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,20 @@ This RFC covers the detailed proposal for this suggestion.
# Summary
[summary]: #summary

The ``[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix )>]`` attribute is so commonly used on top of modules. But it is verbose and tedious.
The ``[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]`` 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

Expand Down

0 comments on commit 329b7e7

Please sign in to comment.