Re: [Rd] Julia

From: Hervé Pagès <hpages_at_fhcrc.org>
Date: Mon, 05 Mar 2012 15:58:59 -0800

Hi Oliver,

On 03/05/2012 09:08 AM, oliver wrote:
> On Mon, Mar 05, 2012 at 03:53:28PM +0000, William Dunlap wrote:
>> I haven't used Julia yet, but from my quick reading
>> of the docs it looks like arguments to functions are
>> passed by reference and not by value, so functions
>> can change their arguments. My recollection from when
>> I first started using S (in the course of a job helping
>> profs and grad students do statistical programming, c. 1983)
>> is that not having to worry about in-place algorithms changing
>> your data gave S a big advantage over Fortran or C.
> [...]
>
>
> C also uses Call-by-Value.

C *only* uses Call-by-Value.

Cheers,
H.

> Fortran I don't know in detail.
>
>
>> While this feature could slow things down and increase
>> memory code, I felt that it made it easier to write correct
>> code and to use functions that others had written.
>
> Yes, I also think, that call-by-value decreases
> errors in Code.
>
> What I read about Julia it's like MATLAB plus more features for programming.
> Does matlab also only use call-by-reference?
>
>
>> Does Julia have a const declaration or other
>> means of controlling or documenting that a given function
>> will or will not change the data passed into it?
>
> I did not explored it in detail so far.
> Maybe the orig-poster already did this in more depth?
>
>
> Ciao,
> Oliver
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages_at_fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 06 Mar 2012 - 00:03:19 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 06 Mar 2012 - 03:00:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive