El lunes, 31 de marzo de 2014 12:14:23 UTC-6, Fab HK escribió:
>
> Hi David,
> not entirely sure it is pertinent, but iterators might be a nice idiomatic
> example, as they pass around state explicitly. See here:
> https://github.com/JuliaLang/Iterators.jl/blob/master/src/Iterators.jl
>
Nice t
Hi David,
not entirely sure it is pertinent, but iterators might be a nice idiomatic
example, as they pass around state explicitly. See here:
https://github.com/JuliaLang/Iterators.jl/blob/master/src/Iterators.jl
I found that a bit hard to understand initially, so I attach my "iterator
cheat sh
El viernes, 28 de marzo de 2014 11:45:51 UTC-6, Stefan Karpinski escribió:
>
> That seems like a reasonable way to do it.
>
OK, thanks.
>
>
> On Fri, Mar 28, 2014 at 1:36 PM, David P. Sanders
>
> > wrote:
>
>> Hi,
>>
>> I often need to share state (a collection of modificable variables)
>>
That seems like a reasonable way to do it.
On Fri, Mar 28, 2014 at 1:36 PM, David P. Sanders wrote:
> Hi,
>
> I often need to share state (a collection of modificable variables)
> between functions.
> In Python and C++, I would do this by putting everything inside a class,
> and the class variab
Hi,
I often need to share state (a collection of modificable variables) between
functions.
In Python and C++, I would do this by putting everything inside a class,
and the class variables (attributes)
would act as "pseudo-global" variables (an excellent description that a
student in one of my