Skip to content

data.table coding style #1532

@dselivanov

Description

@dselivanov

It would be great if we will have some coding style guidelines for data.table project (like contributing guide).
My 5 cents (for both C and R sources):

  1. avoid very long lines - use 80-100 characters.
  2. Place spaces around all infix operators. See for example this line.
  3. Always put a space after a comma, and never before (just like in regular English). See here.

Topic to discuss.

I'm not sure, that it is a good idea to use so long function like readfile in fread.c. Usually it is hard to debug/maintain such long functions.

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