[chemfp] tab-only instead of tab-or-space

Greg Landrum greg at landrumdecker.com
Thu Aug 25 04:51:27 EDT 2011


On Wed, Aug 24, 2011 at 10:29 AM, Rajarshi Guha <rajarshi.guha at gmail.com> wrote:

> On Wed, Aug 24, 2011 at 9:46 AM, Andrew Dalke <dalke at dalkescientific.com> wrote:

>

>> In Python it's (slightly) easier to do:

>>

>>  fields = line.split()     # any runs of whitespace is allowed

>>                            #     and a\t\tb is two fields

>>

>> than to

>>

>>  fields = line.split("\t") # only tabs are allows,

>>                            # and a\t\tb is three fields

>

> Yes, that's true - but I like the second version as the field sep is explicit


I'm with Rajarshi on this one, the flexibility enabled by allowing
either tabs or spaces instead of just tabs just increases the chances
of confusion. Also : please no quoting so that people can include tabs
in indentifiers too. We don't want to fall down the CSV rabbit hole.

-greg


More information about the chemfp mailing list