Skip to content

Add rules for this, delete, auto, lambda... #5

@LuisGP

Description

@LuisGP

I want to call for discussing:

this

Applying the already defined rules, I don't see the need for using this under any circumstance, so I propose to forbid its use. Using it will hide the break of the code stylish defined here.

delete

To unify the usage of the delete operator I propose to use it always without parenthesis.

delete(pointer_); // Bad
delete pointer_; // Good

auto

I propose to define the rules for the usage of auto if any, and when it should be replaced by a concrete type, a typedef or a using.

typedef vs. using

If you are going to define an alias for an already defined type, then typedef is your keyword, but when you need to simplify a type to make the code more readable in a well-defined scope, then which keyword use and why?

lambda

Should we define a maximum length for lambda contents?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions