Am 11.11.2016 um 16:58 schrieb Sven Schreiber:
However, what would be the problem with curly braces in
"{from:to}" (my
previous suggestion)? Intuitively I'd say that after an opening brace
"{" it's 100% obvious that we're in a matrix expression where the
colon
":" hasn't been allowed so far. So it looks as if it would be relatively
straightforward to teach the parser to recognize the colon as indicating
an integer sequence and translate it to "seq(from,to)".
OK, I take that back -- a colon could appear inside curly braces, for
example as part of a ternary expression:
matrix M = { (1==2 ? 3 : 4) }
Hm,
Sven