logoalt Hacker News

vhodgeslast Sunday at 10:54 PM1 replyview on HN

According to the Programming Guide, it supports aliases for imports

"In case of conflict or convenience, you can give modules an alias as well."


Replies

perlgeekyesterday at 11:51 AM

This isn't about conflict, it's about how humans read it.

Let's say I have two modules, "telnet" and "ssh", and both have a "connect" function. When I read "import connect, (long list of other imports here)" I don't know which connect it is, and I might form the wrong mental connection, which I then have to revise when I start to read the module name.