[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Could require take multiple arguments?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 28 Jan 2016 22:02:49 +0200
2016-01-28 20:32 GMT+02:00 Marc Balmer <marc@msys.ch>:
> Wouldn't it be nice if require would take multiple package names
> and return multiple values? Instead of writing
>
> local gui = require 'gui'
> local rpr = require 'rpr'
>
> one could write
>
> local gui, rpr = require('gui', 'rpr')
Message from the "Save Keystrokes Campaign":
Wouldn't it be nice if one could write:
require"gui,rpr"
and get gui and rpr as globally visible packages?