On Sat, Apr 04, 2015 at 09:53:28PM -0400, WolfRage wrote:
>
> So I was surprised I did not get more feedback on my abused coroutine,
> maybe that is good or bad, not sure.
Perhaps people didn't understand it. Or see it :-)
> Any ways I am on to trying to make that coroutine act more like the
>
On 04/04/2015 09:53 PM, WolfRage wrote:
(Pointing to the different classes. Since C++ has virtual methods but
Python does not?)
I'd say that all methods in Python are virtual, except for those which
are classmethod or staticmethod.
--
DaveA
_
On Thu, Apr 02, 2015 at 12:18:28PM -0400, WolfRage wrote:
> These are just some questions that I have regarding the topic of
> Functional Programming. I am working towards a more functional approach
> to programming but acknowledge that it is far from Functional,
> especially since this is mostl
So I was surprised I did not get more feedback on my abused coroutine,
maybe that is good or bad, not sure.
Any ways I am on to trying to make that coroutine act more like the
State Pattern from Gang of Four. And well reading this:
http://gameprogrammingpatterns.com/state.html
I am not sure ho
On Thu, Apr 02, 2015 at 11:52:40AM -0700, Danny Yoo wrote:
> >> What are your thoughts on Functional in Python?
> >> Currently I am re-writing functions to reduce their side effects.
> >> I am also removing the state from objects and putting it into a closure
> >> type function.
> >
> > That doesn'
On Thu, Apr 02, 2015 at 03:36:17PM -0400, WolfRage wrote:
> On 04/02/2015 02:07 PM, Steven D'Aprano wrote:
>
> >>What are the best practices to create more Functional Python?
> >
> >Best practices:
> >
> >* Don't force your code to use one style exclusively. Use the most
> > natural style for th
* WolfRage [150402 11:45]:
> On 04/02/2015 03:08 PM, Tim Johnson wrote:
>
> > You have already received valuable replies from two advanced
> > python experts.
> > If you are looking for a book (available digitally for kindle)
> > I would recommend
> > Guide To: Functional Python & Compr
On 04/02/2015 03:08 PM, Tim Johnson wrote:
You have already received valuable replies from two advanced
python experts.
If you are looking for a book (available digitally for kindle)
I would recommend
Guide To: Functional Python & Comprehension Constructs
by Matt Harrison
Tha
On 04/02/2015 02:52 PM, Danny Yoo wrote:
This is not to say that closures are bad. It's just to point out that
just because functional programs use closures quite a lot, doesn't
automatically mean closures are the most appropriate tool for
everything. If there are parts of the language that al
On 04/02/2015 02:07 PM, Steven D'Aprano wrote:
What are the best practices to create more Functional Python?
Best practices:
* Don't force your code to use one style exclusively. Use the most
natural style for the task. Python makes it easy to mix functional,
procedural, imperative and
On 04/02/2015 01:07 PM, Alan Gauld wrote:
I'm not sure what you mean is impossible? The specific issues
you are having or the general FP paradigm?
I mean achieving truely functional code, atleast to the extent of some
of the things that I have read. But in general I do not need nor want
any of
* WolfRage [150402 08:25]:
> These are just some questions that I have regarding the topic of
> Functional Programming. I am working towards a more functional approach
> to programming but acknowledge that it is far from Functional,
> especially since this is mostly impossible in Python.
> Ques
>> What are your thoughts on Functional in Python?
>> Currently I am re-writing functions to reduce their side effects.
>> I am also removing the state from objects and putting it into a closure
>> type function.
>
> That doesn't remove state, it just moves it to a different place.
>
> However, enc
On Thu, Apr 02, 2015 at 12:18:28PM -0400, WolfRage wrote:
> These are just some questions that I have regarding the topic of
> Functional Programming. I am working towards a more functional approach
> to programming but acknowledge that it is far from Functional,
> especially since this is most
On 02/04/15 17:18, WolfRage wrote:
to programming but acknowledge that it is far from Functional,
especially since this is mostly impossible in Python.
I'm not sure what you mean is impossible? The specific issues
you are having or the general FP paradigm?
Python has fairly good support for F
These are just some questions that I have regarding the topic of
Functional Programming. I am working towards a more functional approach
to programming but acknowledge that it is far from Functional,
especially since this is mostly impossible in Python.
Questions:
What are the best practices to
> Also, much as I like python, it's not really suited to functional
> programming
I'd modify that to say its not ideally suited to FP, but an FP style
is
certainly possible. Pyhon is adequate to learn the principles but it
would
be nearly impossible to write a real world solution using pure FP
On Friday 07 July 2006 00:39, Terry Carroll wrote:
> Neither of these is particularly directed to Python, though.
Also, much as I like python, it's not really suited to functional programming
approaches, given recursion isn't tail optimised, lambda is by comparison
crippled, some aspects of python
On Thu, 6 Jul 2006, Steve Nelson wrote:
> I know there's a section in Alan's tutorial on FP too, but can anyone
> else recommend some good references?
I happened upon this column a few days ago, whic I found a good read to
explain the basic idea, for non-FPers like me:
http://www.defmacro.org
Steve Nelson wrote:
> Hi All,
>
> I've just today starting thinking more about programming in a more
> functional style, and came across the following article which I
> thought was really good:
>
> http://www.amk.ca/python/writing/functional
>
> I know there's a section in Alan's tutorial on FP
On Thu, 6 Jul 2006, Steve Nelson wrote:
> I've just today starting thinking more about programming in a more
> functional style, and came across the following article which I thought
> was really good:
>
> http://www.amk.ca/python/writing/functional
Hi Steve,
The references on the bottom are
Hi All,
I've just today starting thinking more about programming in a more
functional style, and came across the following article which I
thought was really good:
http://www.amk.ca/python/writing/functional
I know there's a section in Alan's tutorial on FP too, but can anyone
else recommend som
22 matches
Mail list logo