[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.
- Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/05
- Re: Idea: Extension of function / return syntax., Jordi Gutiérrez Hermoso, 2013/01/06
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/06
- Re: Idea: Extension of function / return syntax., Júlio Hoffimann, 2013/01/06
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/06
- Re: Idea: Extension of function / return syntax., Júlio Hoffimann, 2013/01/07
- Re: Idea: Extension of function / return syntax.,
Daniel Carrera <=
- Re: Idea: Extension of function / return syntax., Júlio Hoffimann, 2013/01/07
- Re: Idea: Extension of function / return syntax., Michael D. Godfrey, 2013/01/07
- Re: Idea: Extension of function / return syntax., Daniel Carrera, 2013/01/07
- Re: Idea: Extension of function / return syntax., John W. Eaton, 2013/01/07
- Re: Idea: Extension of function / return syntax., Michael D. Godfrey, 2013/01/07
Re: Idea: Extension of function / return syntax., Jordi Gutiérrez Hermoso, 2013/01/07