On Wed, 22 Feb 2012, Martin Lüthi wrote:

At this point I'm leaning towards hideous syntax like:

function_list = '0 {1} {cos(x)}{sin(y)}'

for putting lists of functions (in this case: two scalar-valued, braces
optional; one vector-valued) into GetPot.  And best not to let any
spaces slip into your functions, because GetPot doesn't skip even
quoted spaces as a vector-of-strings delimiter...

That's an awful syntax. Why not simply fix getpot to keep spaces within
strings,

We can't support proper string handling without backwards
compatibility breaking *everywhere*.

Right now,

number_list = 0 1 2 3 4

basically ignores everything after the 0, so everyone has to use

number_list = '0 1 2 3 4'

to get a vector variable out of GetPot.  If that suddenly turns into a
single string variable, practically every old input file stops
working.

and enhance it to accept something like '''triple quoted strings'''
(which go unparsed) in Python?

That's an interesting idea.  Start allowing (but not requiring)
unquoted vectors, and that way you can easily get a vector of strings
with spaces in them, etc.

I guess I should also look into how GetPot is currently treating
double-quote characters; that would be a bit nicer than manual
triple-quoting.

This isn't high on my priority list, but it does seem to be a uniform
improvement...
---
Roy
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to