On 2014-02-21 14:51, Ben Boeckel wrote:
If I made a branch which warned when implicit expansion was done, would
folks be willing to run it over various codebases to see how annoying it
would be to just remove it altogether?

To be clear, are we talking about in the case of e.g. STREQUAL, or *ever*? Because I'm sure breaking 'if(Pkg_FOUND)' would be very, very bad :-).

I'd be a little suspicious of even the former; I know at least in my case, greater understanding of implicit expansion leads to greater *reliance* on it as a guard against unintended expansion (i.e. 'if (FOO STREQUAL "...")' instead of 'if ("${FOO}" STREQUAL "...")').

(Loosely related: if variable names were sane, it would at least be safe to write e.g. 'if ("#${FOO}" STREQUAL "#...")'. But alas, '#${FOO}' might still be the name of a variable.)

--
Matthew

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to