git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add git svn gc command

From
Thomas Rast <trast@student.ethz.ch>
Date
Jul 20, 2009, 11:41 UTC
Message-ID
<200907201342.01912.trast@student.ethz.ch>
In-Reply-To
<9b18b3110907200202kbb78c8dm43e0451900e4f2fb@mail.gmail.com>
demerphq wrote:
> 
> my $can_compress= eval "require Compress::Zlib; 1";
Wouldn't
  my $can_compress = eval { require Compress::Zlib; 1 };

be better on the grounds that this will catch compilation errors in the eval'd statement at compilation (of the main program) time?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: demerphqNext: demerphq
Message 6 of 8 in “Add git svn gc command”
  1. Add git svn gc commandRobert Zeh, Jul 19, 2009
  2. Eric WongJul 20, 2009
  3. demerphqJul 20, 2009
  4. Eric WongJul 20, 2009
  5. demerphqJul 20, 2009
  6. Thomas RastJul 20, 2009
  7. demerphqJul 20, 2009
  8. Eric WongJul 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.