netj / 3x

3X — a Workbench for eXecutable eXploratory eXperiments
http://netj.github.io/3x/
21 stars 4 forks source link

cannot have space in input values #31

Open sonalgupta opened 8 years ago

sonalgupta commented 8 years ago

3x define input 'algo' 'bubble Sort' gives an error input/algo=/bubble Sort: Invalid character in pattern value bubble Sort for algo.

It's quite a restriction to have only alpha numeric characters in the input values, unless I am missing some way to have input values with space/comma.

netj commented 8 years ago

No you can't use space in values as the error says. Disallowing space and special characters is a design decision made to be friendly to the underlying filesystem and rest of the parts. You can set any data to a variable in env, e.g., label="bubble Sort" if you absolutely need to keep track of arbitrary strings associated to that value.