On Tuesday, April 29, 2014 4:53:05 PM UTC+1, Matt Bauman wrote:
>
> I use cell arrays very often in Matlab, too, but I've found that I often 
> don't really need to even worry about the distinction in julia.  Square 
> brackets will constrain the types as much as possible, and if it's not 
> possible, Any[] == {}.
>
> Moreover, most of what I used cell arrays for in Matlab are completely 
> obviated in Julia — Cell arrays of strings (strings are first class) and 
> passing/parsing/splatting varargs (keyword arguments are wonderful and any 
> Julian collection can be splatted).
>
>
Yes, I'd been thinking I would use heterogeneous arrays less in Julia, for 
the reasons you mention.

 

Reply via email to