Skip to content

[New feature] Rule to check useless string concatenation #174

@david-maison

Description

@david-maison

Can a rule to check for useless string concatenation be useful?

Example:

let s =
  "a string very very very very very very very short " ^
  "that I split in two in order to not go over 80chars per line"

(* instead of *)
let s =
  "a string very very very very very very very short \
   that I split in two in order to not go over 80chars per line"

(Or maybe the OCaml compiler already optimizes that kind of things?)

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