Class as Namespace

The second example can be somewhat of a problem as per Inference of type from namespace · Issue #8685 · crystal-lang/crystal · GitHub as well. Are a few places where I have to define a class near the top of my requires so that the class Foo::Bar does not treat Foo as a module. But yes, this is more of an organizational thing and unlikely to have any affect on the underlying code.

1 Like