Posted by
Kenneth Sloan-2 on
Jan 31, 2016; 3:39pm
URL: http://imagej.273.s1.nabble.com/Wishlist-GOTO-in-an-ImageJ-macro-tp5015489p5015497.html
The history of scripting languages is that they add features until they become useless as scripting languages (and, in the process, become clumsy and badly designed programming languages).
I have always told students: as soon as you find a “missing feature” in your favorite scripting language, it’s time for you to consider a real, full-fledged programming language”.
Herbie finally gets to the point: use Java. It has everything you asked for, (well, still no GoTo - that would be wrong - but more than enough flow of control features for anyone).
IJ currently has a nice balance of a *simple* scripting language AND a full fledged programming language. It would be a mistake to modify the scripting language until it has all the features of Java. Then, someone would have to add a lightweight scripting language! And the wheel would turn again…
Just Say No to creeping featurism.
—
Kenneth Sloan
[hidden email] <mailto:
[hidden email]>
Vision is the art of seeing what is invisible to others.
> On Jan 31, 2016, at 08:32, Herbie <
[hidden email]> wrote:
>
> Daddymoen,
>
> not only on the IJ-Forum but now on this list...
>
> 1.
> -- Wishlist
> Not that I know of...
> Concerning reproducible bugs, there are always open ears and rapidly reacting coding hands on this list.
>
> 2.
> -- GOTO(line number)
> Using GOTO(line number) leads to spaghetti code and is difficult to maintain.
> This is no new argument and reflected by all serious languages.
> I'm sure that you won't see GOTO(line number) in the IJ-macro language or in any other modern scripting language.
> What do you mean by lame?
> Why is the use of functions lame?
>
> 3.
> -- 2D array
> You may use Java!
> Could you be more specific for which purpose you need 2D-arrays in IJ-macros.
>
> Best
>
> Herbie
>
> :::::::::::::::::::::::::::::::::::::::
> Am 30.01.16 um 05:38 schrieb Daddymoen:
>> If there is a separate web page for posting Wishlist items my first wish
>> would be to know how to find it. In the old days BASIC had a GOTO(line
>> number) command. There are some situations where it would make macro
>> programming so much easier to have that command instead of the
>> lame-Function-kind-of-useful-command. That's my second wish. My third is
>> to have a real array command that allows at least a 2D array, without using
>> the present, also lame, work around.
>>
>> Daddymoen
>>
>>
>>
>> -----
>> Imagination is more important than knowledge. Albert Einstein
>> --
>> View this message in context:
http://imagej.1557.x6.nabble.com/Wishlist-GOTO-in-an-ImageJ-macro-tp5015489.html>> Sent from the ImageJ mailing list archive at Nabble.com.
>>
>> --
>> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html