Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Rationale for the patch for case insensitive configuration values (http://www.linux-archive.org/archlinux-pacman-development/621777-rationale-patch-case-insensitive-configuration-values.html)

lolilolicon 01-17-2012 04:40 AM

Rationale for the patch for case insensitive configuration values
 
On Tue, Jan 17, 2012 at 8:24 AM, Alexander Rødseth <rodseth@gmail.com> wrote:
> Hi,
>
> I understand that case sensitivity can, perhaps, bring clarity for
> configuration values like ILoveCandy, but IMO, both "Never" and
> "never" should be allowed, as the uppercase letters bring no more
> clarity, but add an additional requirement for the users to conform
> to. That is the reason for the patch. Also, in the name of
> consistency, I changed all the checks in conf.c, not just the check
> for the word "Never".
>
> This is about simplicity and removing a constraint that users
> shouldn't have to relate to when editing pacman.conf.

This is not about simplicity, but "user-friendliness" or ease.

Look at pacman.conf, every directive or option is in CamelCase, and the
only things that are (likely) in lowercase are package and repo names and
file paths.

This distinction is good and increases clarity. By being case
insensitive, you introduce complexity, allow this consistency to be
broken and potentially reduce clarity.

>
> I tested both compilation and execution of the resulting pacman binary
> and it works fine here.
>
> --
> Sincerely,
> *Alexander Rødseth
> *Arch Linux Trusted User
> *(xyproto on IRC, trontonic on AUR)
>


All times are GMT. The time now is 09:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.