Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Code style: should getter methods return pointers or references #27

@jianqiao

Description

@jianqiao

Currently some classes (especially in the parser and the optimizer) have their getter methods return pointers (*) to objects while some return references (&) to objects. As Jignesh suggested, would it better if we follow certain style guide and uniform the style of the existing code? Say, only return pointers if the returning value can be NULL or is yielding ownership, otherwise return references.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions