Re: [patch] Add constans for type()

2016-07-18 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > 2016/7/16 Sat 21:21:11 UTC+9 Bram Moolenaar wrote: > > Ken Takata wrote: > > > > > The help of type() says: > > > > > > To avoid the magic numbers it should be used this way: > > > > :if type(myvar) == type(0) > > > :if type(myva

Re: [patch] Add constans for type()

2016-07-17 Fir de Conversatie Ken Takata
Hi Bram, 2016/7/16 Sat 21:21:11 UTC+9 Bram Moolenaar wrote: > Ken Takata wrote: > > > The help of type() says: > > > > To avoid the magic numbers it should be used this way: > > > :if type(myvar) == type(0) > > :if type(myvar) == type("") > >

Re: [patch] Add constans for type()

2016-07-16 Fir de Conversatie Bram Moolenaar
Ken Takata wrote: > The help of type() says: > > To avoid the magic numbers it should be used this way: > > :if type(myvar) == type(0) > :if type(myvar) == type("") > :if type(myvar) == type(function("tr")) >

Re: [patch] Add constans for type()

2016-07-15 Fir de Conversatie Ken Takata
Hi, 2016/7/16 Sat 12:06:54 UTC+9 Ken Takata wrote: > Hi, > > The help of type() says: > > To avoid the magic numbers it should be used this way: > > :if type(myvar) == type(0) > :if type(myvar) == type("") > :if type

[patch] Add constans for type()

2016-07-15 Fir de Conversatie Ken Takata
Hi, The help of type() says: To avoid the magic numbers it should be used this way: > :if type(myvar) == type(0) :if type(myvar) == type("") :if type(myvar) == type(function("tr")) :if