RSSAmplifier

Kevin Cox's Blog · Jul 20, 2025

I Don't Like Imports

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

I think this is an unusual opinion, so I thought I would share. I prefer not to import external symbols into the local scope. For example, I prefer: let body = reqwest :: get ( " https://kevincox.ca/feed.atom " ) .await?. text () .await? ; over use reqwest :: get; // At the top of the file. // Inside some function. let body = get ( " https://kevincox.ca/feed.atom " ) .await?. text () .await? ;…

Read on kevincox.ca

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.