Skip to content

raise exceptions instead of returning NIL #288

@yegor256

Description

@yegor256

May I suggest you raise exceptions instead of returning nil in, for example, script.rb? Those nils are just making things worse since later it's difficult to understand why attributes are nil. It's just a good practice to avoid nil in object-oriented programming. Thanks.

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