octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Idea: Extension of function / return syntax.


From: Daniel Carrera
Subject: Re: Idea: Extension of function / return syntax.
Date: Mon, 7 Jan 2013 12:10:17 +0100

On 7 January 2013 11:40, Júlio Hoffimann <address@hidden> wrote:
>
> Sorry if sounded rude, what i tried to say was that the actual syntax is
> much simpler. Why to bother in return explicitly if Octave is able to track
> any touch in the return list? Again, the return statement exists to merely
> avoid unnecessary computations.
>
> About the last proposal - the Perl-like return statement - other languages
> such as Julia adopted it
> (http://docs.julialang.org/en/latest/manual/functions/). I don't think it's
> a good design for the reasons i just explained. Moreover, complexity is to
> be avoided, having multiple ways to declare a function doesn't help the
> parser.
>
> As always, that's just my point of view, let's the giants decide if it's a
> great feature to have.

I didn't think you were rude. You raised good points. Let's see what
other people think.

Btw, how come I've never heard of Julia before? Is it new? It looks
like a really interesting language for scientific work. I'm currently
reading through the documentation.

Cheers,
Daniel.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]