Hacker News new | ask | show | jobs
by lordofgibbons 496 days ago
> I assume that free-floating functions are global functions.

In most languages they're bound to some scope, like package, module, etc. I'm not familiar with C#, but I assume there it would be scoped in a namespace.

1 comments

Yes, I'd like to be able to define functions directly under the namespace. In C#, it seems the only way to do this in to define a static method in a class, the class being part of a namespace.