Created
June 10, 2015 16:57
-
-
Save anonymous/18108a3fbaa79433ce65 to your computer and use it in GitHub Desktop.
FSharp indentation recommendation to become based on indent of first character in previous non-blank line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<AbstractClass>] | |
(* | |
//instead of this calm indentation base on indent of first character in previous non-blank line | |
type View< | |
'Events, | |
'Window when | |
'Window :> Window and | |
'Window : (new : unit -> 'Window) | |
>(?window) = | |
*) | |
//we have to write this weird thing base on the position of special characters in previous lines | |
//making indentation base on identifier names | |
type View< | |
'Events, | |
'Window when | |
'Window :> Window and | |
'Window : (new : unit -> 'Window) | |
>(?window) = | |
let window = defaultArg window (new 'Window()) | |
member this.Window = window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment