Skip to content

don't auto close on single quote - #10239

Merged
Martin Aeschlimann (aeschli) merged 1 commit into
microsoft:masterfrom
cloudRoutine:patch-1
Aug 22, 2016
Merged

Martin Aeschlimann (aeschli) merged 1 commit into
microsoft:masterfrom
cloudRoutine:patch-1

Conversation

@cloudRoutine

@cloudRoutine Jared Hester (cloudRoutine) commented Aug 6, 2016 •

Copy link
Copy Markdown
Contributor

In F# the ' is prepended to an identifier to indicate it is generic in type and function signatures:

let fn (x: 'a) (y: 'b) = ...
type Box< 'a, 'b > () = ...
type Inter =
    abstract Op : 'a -> 'b -> 'c

It is also common convention to append it to binding names as it is a valid identifier char, e.g. let x = 10 in let x' = x + 5. These usages are vastly more common than using ' to surround a character literal and as such the auto close behavior is incredibly annoying when writing F#.

In F# the `'` is prepended to an identifier to indicate it is generic in type and function signatures:
```
let fn (x: 'a ) (y: 'b) = ...
type Box< 'a, 'b > () = ...
type Inter =
    abstract Op : 'a -> 'b -> 'c
```
It is also common convention to append it to binding names as it is a valid identifier char, e.g. `let x = 10 in let x' = x + 5`. These usages are vastly more common than using `'` to surround a character literal and as such the auto close behavior is incredibly annoying when writing F#.
@msftclas

Hi Jared Hester (@cloudRoutine), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@aeschli

Copy link
Copy Markdown
Contributor

Thanks Jared Hester (@cloudRoutine) !

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants