Closed GoogleCodeExporter closed 8 years ago
I must admit, I thought it did do short circuited evaluation, but you are
right! I will look at it. Regarding the quotes, use -smq to do smart-quoting,
which will only quote when absolutely necessary. The header issue is a
recurring problem - I will have another look at it.
BTW, in future, please post ONE issue at a time here - if you want to raise
multiple issues, and ask questions about usage, please use the support group at
http://groups.google.com/group/csvfix, where you will typically get a faster
response than posting here.
Original comment by nbutterworth1953@gmail.com
on 22 Jun 2012 at 8:52
Original comment by nbutterworth1953@gmail.com
on 26 Jun 2012 at 7:55
Unfortunately, the expression evaluation engine used by CSVfix is resolutely
going to treat if() as a function. As in most languages, ALL function arguments
are evaluated before the function is called, so it is not possible (for
function calls) to do short-circuited evaluation. I mistakenly (god knows why)
thought I had implemented SCE, so this is a documentation issue for the
current major version, which I will correct in the next release.
I recognise that short-circuited evaluation is extremely desirable, and will
hopefully implement it in CSVfix 2.0, for which do not hold your breath.
I am therefore reluctantly marking this as WontFix.
Original comment by nbutterworth1953@gmail.com
on 24 Jul 2012 at 6:58
Original issue reported on code.google.com by
nemesk...@gmail.com
on 21 Jun 2012 at 3:29