Skip to content

Discussion: Disambiguation of requires #2891

Closed
@jwaldrip

Description

@jwaldrip

This is just to start a dialog. I love crystal and what the team has done thus far.

One thing I dislike about ruby is the ambiguity of the require syntax. I don't think requires should become global objects or constants. You should be able to control the assignment of other dependencies in the language. As someone who is debugging a certain file, I believe it is much easier to chase the rabbit when your dependencies are specified locally.

Other languages where this exists:

  • Go
  • Python
  • Node.js
  • ES6

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