You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `PowerShellForGitHub` PowerShell module for all GitHub operations. Never use GitHub CLI (`gh`) or any other CLI tool for GitHub.
15
+
First of all use GitHub MCP tools.
16
+
If no tool avaialble, use `PowerShellForGitHub` PowerShell module for all GitHub operations. Never use GitHub CLI (`gh`) or any other CLI tool for GitHub.
15
17
16
18
## Libraries we use
17
19
@@ -39,6 +41,7 @@ Prefer `voption` over `option`
39
41
Prefer `task` CE over `async` CE
40
42
41
43
This is how you define a non-default F# class constructor:
44
+
42
45
```fsharp
43
46
type DerivedClass =
44
47
inherit BaseClass
@@ -61,6 +64,7 @@ type DerivedClass =
61
64
Always prefer F# class initializers over property assignment! **You absolutely must use F# class initializers instead of property assignment**!
62
65
63
66
Having a class declaration:
67
+
64
68
```F#
65
69
type MyClass (someConstructorParam : string) =
66
70
member ReadOnlyProperty = someConstructorParam
@@ -70,13 +74,15 @@ type MyClass (someConstructorParam : string) =
70
74
```
71
75
72
76
The following excerpt of class creation is wrong:
77
+
73
78
```F#
74
79
let myClass = MyClass("some value")
75
80
myClass.MutableProperty1 <- "new value"
76
81
myClass.MutableProperty2 <- "new value"
77
82
```
78
83
79
84
The following excerpt (uses initializer syntax) of class creation is right:
85
+
80
86
```F#
81
87
let myClass =
82
88
MyClass(
@@ -93,9 +99,11 @@ let myClass =
93
99
## Coding instructions
94
100
95
101
During the implementation, if you need some types or members defined in the other project but that project is not referenced, then:
102
+
96
103
1. stop implementing the solution;
97
104
2. respond with summary about what is needed and which project it is defined in;
98
105
3. ask if you can add the reference before continuing coding.
106
+
99
107
Never ever duplicate the code unless you got explicit confirmation that you are allowed to do so.
0 commit comments