Skip to content

Feature: indexing syntax consistency #532

@knocte

Description

@knocte

Description

After csharp-style indexing has been introduced in F#6.0, it might be interesting to have a rule that can be configured with style=ocaml (in case one prefers to stay with the legacy syntax) or style=csharp.

OCaml style:

let someArray = [| "foo" ; "bar" |]
let bar = someArray.[1]
System.Console.WriteLine bar

CSharp style:

let someArray = [| "foo" ; "bar" |]
let bar = someArray[1]
System.Console.WriteLine bar

This might require upgrading our FCS dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions