synonyms

Bob Sneidar bobsneidar at iotecdigital.com
Thu Jun 29 14:11:57 EDT 2017


put "chart" into tType ; put "100" into tSize ; doSomething tType, tSize

That is a one liner too. So what? Are we averse to carriage returns? If it's that big a deal someone could write a function that takes
> doSomething type="chart"  size="100"
and converts it to:
> doSomething put "chart" into type ; put "100" into size ; doSomething type, size

and then replaces it in your script editor with a hotkey. I just think the whole thing is majoring in the minors. 

> That's possible in R, Python, CSS, and others, but not natively in LC.

I suppose lots of things are possible in other languages. Are we trying to be just like all the other languages? 

Bob S



> On Jun 29, 2017, at 10:33 , Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> > put "chart" into tType
> > put "100" into tSize
> > doSomething tType, tSize
> 
> That's not a one-liner.  That's three lines.  :)
> 
> The call itself is indeed only one line, but to prep the args for the call requires as many additional lines as there are args.
> 
> This is a one-linter:
> 
>  doSomething type="chart"  size="100"
> 
> That's possible in R, Python, CSS, and others, but not natively in LC.
> 
> -- 
> Richard Gaskin





More information about the use-livecode mailing list