On 11 =C9=EF=FD=ED, 20:35, Ilias Lazaridis <il... / lazaridis.com> wrote:
> This is a simple Request for Comments.
>
> Scenario:
>
> require_relative 'lib/alter'
> require 'alibrary'
>
> Some project manager complains about "require_relative", and asks you
> to find a one-word alias.
>
> Which name would you select and for what reasons?
>
> Requirements
> must:
> * one word
>
> optional:
> * ideally a 7 letter word

Solutions:

require! 'lib/alter' # 2011-06-17 by Gary Wright
involve  'lib/alter' # 2011-06-16 by Sam Duncan
locally  'lib/alter' # 2011-06-11 by Rob Biedenharn
uniload  'lib/alter' # my
request  'lib/alter' # my
include  'lib/alter' # my
relative 'lib/alter' # my

-

#old

require_relative 'lib/baselib'
require 'sinatra"'

#new

require! 'lib/baselib"'
require  'sinatra'

-

Applying the change:

module Kernel
  alias require! require_relative
end

-

I like the word "involve" more, but as "require!" reminds clearly the
original "require", it's the first choice.

.

--
http://lazaridis.com