|Bill Allombert on Wed, 20 Mar 2013 17:07:45 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: PARI 2.6 syntax 1: iferr/iferrname|
On Thu, Mar 07, 2013 at 08:51:23PM +0100, Bill Allombert wrote: > On Fri, Feb 15, 2013 at 10:22:08PM +0100, Bill Allombert wrote: > > On Fri, Feb 15, 2013 at 06:32:47PM +0100, Karim Belabas wrote: > > > * Bill Allombert [2013-02-14 22:42]: > > > [...] > > > > > > I am not sure that two separate functions iferr / iferrname are useful. > > > We could have a single iferr() -- corresponding to current iferrname -- > > > with the following syntax: > > > > A possibility is to discriminate on the number of arguments, like 'if' do. > > While discussing with Karim, we decided to remove iferrname and allows: > > iferr(seq1,E,seq2) \\ unchanged > iferr(seq1,E,seq2,pred) \\ only trap the error if pred is true They have been implemented in git rev b15e4d8677 Cheers, Bill.