Load Packages inside a function

I tried to load a package inside a function and it did not work. Then I came across this post.


The post says that this can be done ’ @eval using package_name’ but it may create issues. Just wanted to know what issue could arise due to this.