**Disclaimer**: I have no problems with standard import philosophy.

TIL that I can both import nothing from a module and alias it; my previous 
attempts failed, and looked like this:
    
    
    # Regardless of order, this imports all symbols from `foo` into the current 
namespace
    # and allows for fully qualifying symbols from `foo` with either a `foo` or 
`f` prefix.
    import foo as f
    from foo import nil
    

My latest attempt works and approximates what imports are like in Python.
    
    
    # This imports foo as f and requires fully qualifying symbols from `foo` 
using the `f` prefix.
    from foo as f import nil
    

I think that's pretty nifty, even if I don't end up importing things that way. 

Reply via email to