Re: Ideas for next Eu
Pete King suggests:
>I would also like to see a further step... subscripting functions as
>though they are sequences. Like so:
>
>first_name=get_name(database)[1]
>
>This can of course be done with a seperate routine, but whats the point
>of duplicate program code? It only adds to file size.
Mmm...I guess I don't see any overriding need for subscripting of
expressions. It looks a tad goofy to me, and with multiple parameters or
complicated expressions it would obscure, rather than clarify, what was
going on. Shameless plug for my own idea, based on the above:
{first_name, last_name} = get_name(database)
Or something like that -- your given example, I fear, does not seem very
practical. Perhaps a better example might be a more persuasive argument for
your idea?
Speaking of a better example being more persuasive, here's another use for
my own idea which I would find *extremely* beneficial on a day-to-day
basis...
while 1 do
{return_code, data} = get(input_file)
if return_code = GET_SUCCESS then
data = reformat(data)
print(output_file, data)
elsif return_code = GET_EOF then
-- end of file
exit
else
-- corrupted data file
abort(13)
end if
end while
Hep yadda,
Gabriel
----------
It is the beginning of all true criticism of our time to realize that it has
really nothing to say, at the very moment when it has invented so tremendous
a trumpet for saying it.
G.K. Chesterton
----------
|
Not Categorized, Please Help
|
|