在Node中为module.exports使用包装匿名函数是不好的做法?

我最近开始在我的NodeJS express模块​​中使用包装匿名函数,因为它有助于我编写更清晰的代码。

然而,我不确定这是否被认为是坏的/良好的做法在节点环境(也许一些debugging/优化问题?),它被Coffeescript广泛使用,所以我想它一定是好的,是吗?

Express Controller示例:

module.exports = (function() { function LinksController() {} var moment = require('moment'), _ = require('underscore'), Q = require('q'); LinksController.edit = function edit(req, res, next) { ... } return LinksController; })(); 

这样做没有什么技术上的错误,但是完全没有必要。