Re: [Wikitech-l] The mw.ext construct in lua modules

2019-02-02 Thread Greg Rundlett (freephile)
Sound proposal in my opinion.

Greg Rundlett
https://eQuality-Tech.com
https://freephile.org


On Sat, Feb 2, 2019 at 8:32 AM Eran Rosenthal  wrote:

> I agree with John, and I think mw.ext.EXTNAME should be avoided and we
> should prefer mw.EXTNAME which is clear and simple and fills very native.
> This is already the way it is used in wikibase (mw.wikibase.FUNCNAME) which
> I believe is the most heavily used extension exposing Lua interface.
>
> To conclude:
> 1. We should either accept this convention (dropping the "ext") and update
> https://www.mediawiki.org/wiki/Extension:Scribunto/Example_extension
> 2. or we should reject this proposal and open phab ticket to wikibase to
> change mw.wikibase to mw.ext.wikibase everywhere (probably keeping the
> first for backward compatibility)
>
> Thanks,
> Eran
>
>
>
> On Fri, Jan 25, 2019 at 9:48 PM John Erling Blad  wrote:
>
> > There are several extensions that diverge on the naming scheme. Some
> > of them even being referenced as using the scheme, while not providing
> > lua libs at all. It is a bit weird.
> >
> > On Fri, Jan 25, 2019 at 7:09 PM Kunal Mehta 
> > wrote:
> > >
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA512
> > >
> > > Hi,
> > >
> > > On 1/24/19 11:33 PM, Thiemo Kreuz wrote:
> > > > Is there a question assigned with this long email? Is this a call
> > > > for feedback?
> > >
> > > I think this is probably related to/coming from
> > > .
> > >
> > > - -- Legoktm
> > > -BEGIN PGP SIGNATURE-
> > >
> > > iQIzBAEBCgAdFiEE2MtZ8F27ngU4xIGd8QX4EBsFJpsFAlxLUJcACgkQ8QX4EBsF
> > > JpuIGRAAtHXuDQqmJK+fqKiMYrzRE7aXkX/pis7z7F5nncPWfHpaMFKFMHeAu4/d
> > > PHvpJqifXi5LwCV/YSAugmZJaQ1FFn2u+/ZA9sXAAR0JBvHnY/A5unmfXkzpteEP
> > > eUSCtexL5vjyjVo+Yd/ixbg06FS9Jc/6dxECxb6/A84gjHHQxA9drK4bkLZRvGPj
> > > 2oInMsB37iBj5/Q/ShO8Km2hz7HJ/zNyW5ljFTYwTKzNiPBcGdswMLu4vj0ALfIF
> > > OHwUeHj+M6i5UqnP0HiRBSHeFWo9it6RSXEd+lfVNbn46VJZ3zkNUFDqkWeJOWgs
> > > o3N781lCdRbcn/P3V+k2CkQhVqjGPb/MgxUyQAreup8fcwBcDiDkj7wNnnUETVuS
> > > EYg3Fc/xlrjIKYO54LSU5kHphEhCxAHdbxol8X8mNPQ3IHGQpyJCCSX6+qSGM/0+
> > > CYtNh+ktJSyghmdUv2QOvjSkObTKL2HV9yLD3a/3qqO+Pekn9mnoNax/Splr0bV2
> > > OkK9KMBEd73+/r+6hmhQoJdESOjLofyzoT9ohR3xWlJSfH8XOAWkphbuu87Dp0k1
> > > KNjue1eP0KY5bO4+64hnqbCpeVpJiaQjkw+uCTmLz7u7tBME1rt7D+3D0PizXENN
> > > NNkLc4XNl4ouKti3Yhkx0P4TAy/QIDR15M0eSSikHJI8PehqnRU=
> > > =V+xr
> > > -END PGP SIGNATURE-
> > >
> > > ___
> > > Wikitech-l mailing list
> > > Wikitech-l@lists.wikimedia.org
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] The mw.ext construct in lua modules

2019-02-02 Thread Eran Rosenthal
I agree with John, and I think mw.ext.EXTNAME should be avoided and we
should prefer mw.EXTNAME which is clear and simple and fills very native.
This is already the way it is used in wikibase (mw.wikibase.FUNCNAME) which
I believe is the most heavily used extension exposing Lua interface.

To conclude:
1. We should either accept this convention (dropping the "ext") and update
https://www.mediawiki.org/wiki/Extension:Scribunto/Example_extension
2. or we should reject this proposal and open phab ticket to wikibase to
change mw.wikibase to mw.ext.wikibase everywhere (probably keeping the
first for backward compatibility)

Thanks,
Eran



On Fri, Jan 25, 2019 at 9:48 PM John Erling Blad  wrote:

> There are several extensions that diverge on the naming scheme. Some
> of them even being referenced as using the scheme, while not providing
> lua libs at all. It is a bit weird.
>
> On Fri, Jan 25, 2019 at 7:09 PM Kunal Mehta 
> wrote:
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA512
> >
> > Hi,
> >
> > On 1/24/19 11:33 PM, Thiemo Kreuz wrote:
> > > Is there a question assigned with this long email? Is this a call
> > > for feedback?
> >
> > I think this is probably related to/coming from
> > .
> >
> > - -- Legoktm
> > -BEGIN PGP SIGNATURE-
> >
> > iQIzBAEBCgAdFiEE2MtZ8F27ngU4xIGd8QX4EBsFJpsFAlxLUJcACgkQ8QX4EBsF
> > JpuIGRAAtHXuDQqmJK+fqKiMYrzRE7aXkX/pis7z7F5nncPWfHpaMFKFMHeAu4/d
> > PHvpJqifXi5LwCV/YSAugmZJaQ1FFn2u+/ZA9sXAAR0JBvHnY/A5unmfXkzpteEP
> > eUSCtexL5vjyjVo+Yd/ixbg06FS9Jc/6dxECxb6/A84gjHHQxA9drK4bkLZRvGPj
> > 2oInMsB37iBj5/Q/ShO8Km2hz7HJ/zNyW5ljFTYwTKzNiPBcGdswMLu4vj0ALfIF
> > OHwUeHj+M6i5UqnP0HiRBSHeFWo9it6RSXEd+lfVNbn46VJZ3zkNUFDqkWeJOWgs
> > o3N781lCdRbcn/P3V+k2CkQhVqjGPb/MgxUyQAreup8fcwBcDiDkj7wNnnUETVuS
> > EYg3Fc/xlrjIKYO54LSU5kHphEhCxAHdbxol8X8mNPQ3IHGQpyJCCSX6+qSGM/0+
> > CYtNh+ktJSyghmdUv2QOvjSkObTKL2HV9yLD3a/3qqO+Pekn9mnoNax/Splr0bV2
> > OkK9KMBEd73+/r+6hmhQoJdESOjLofyzoT9ohR3xWlJSfH8XOAWkphbuu87Dp0k1
> > KNjue1eP0KY5bO4+64hnqbCpeVpJiaQjkw+uCTmLz7u7tBME1rt7D+3D0PizXENN
> > NNkLc4XNl4ouKti3Yhkx0P4TAy/QIDR15M0eSSikHJI8PehqnRU=
> > =V+xr
> > -END PGP SIGNATURE-
> >
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l