yui/yui3 — comment on commit 95f1c29b500e7417c55cf64c2594b38e21c3ed37
File:  line 0
By derek:

Now that we have type detection, it popped into my head how awesome it would be to just use a string as a module (when you don't need advanced configuration), instead of requiring an object.

Example:

```javascript
YUI({
modules: {
somejs: '/somejs.js',
somecss: '/somecss.css'
}
}).use('somecss', 'somejs', function(Y)){
// ...
})
```

Perhaps it is just as simple as:

```javascript
if (Y.Lang.isString(o)){
o = {fullpath:o};
}
```

There's probably a more efficient way, considering all YUI code currently out there today would return false on that check. But you get the idea.