Re: Let pkglocal be the default
[Thread Prev] | [Thread Next]
- Subject: Re: Let pkglocal be the default
- From: ori@xxxxxxxxxxxxxx
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Fri, 18 Oct 2019 09:39:30 -0700
- To: mail@xxxxxxx, myrddin-dev@xxxxxxxxxxxxxx
> I find that the single-file scope is not particularly useful. > And most of the time the `pkglocal` visibility seems to be the better default. > Can we make pkglocal the default and get rid of it eventually? > Any concerns? > -- > > Mura.L No particularly strong concerns. I have a mild preference for keeping it as is, because I like having things as static and local as possible. I rarely find myself reaching for it in my code, and when I do it seems to be for an entire package at once where I'm abstracting a set of platform specific APIs. But, again, this isn't a strongly held opinion: making everything pkglocal by default wouldn't make the code I write any worse, it's just an argument from purity. If it makes it easier for you to write your code, I'd be ok with changing it. The only technical consideration is usefile bloat -- but that's unlikely to matter in practice. Especially if generics aren't used too heavily.
Re: Let pkglocal be the default | "Mura Li" <mail@xxxxxxx> |
- Prev by Date: Let pkglocal be the default
- Next by Date: Re: Let pkglocal be the default
- Previous by thread: Let pkglocal be the default
- Next by thread: Re: Let pkglocal be the default
- Index(es):