def example = enum {
OPTION_A,
OPTION_B,
};

Consider the following:

// In module "foo"
def example = enum {
OPTION_A,
OPTION_B,
};

// In user code
use foo;

let x = foo::example::OPTION_A;

Too verbose?

Follow

@sir I don't think so. I don't mind the long identifiers. I would like a way to bring the `example` identifier into scope, not just use foo.

Sign in to participate in the conversation
Be More Kind

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!