Daniel Carrera <[EMAIL PROTECTED]> writes:
> I had no idea that Python had these features.
Future versions of Python won't have all those features, see:
http://lambda-the-ultimate.org/node/view/587
This is specifically about the fabled Python 3000 which will be a backwards
compatibility breaking
Quinn Dunkan wrote:
Python has first class functions and lexical scoping, and encourages
higher-order functions, though to a much lesser degree than a real
functional language.
I was surprised to hear about first class functions and higher order
functions. So I googled for a bit, and I found somet
Daniel Carrera wrote:
> Erik de Castro Lopo wrote:
>
> > Its good for small scripting tasks. Its good for string processing.
> > I find the dynamic typing a pain.
>
> What's dynamic typing?
I can't say it any better than this:
http://c2.com/cgi/wiki?DynamicTyping
Basically, types are dete
Quinn Dunkan <[EMAIL PROTECTED]> wrote :
> ... It is very natural to
> write in a somewhat functional style, especially in regards to
> sequence processing: higher order functions and listcomps provide the
> processing and its built in generators and iterator protocol provide
> some of the benefit
Michael Vanier wrote:
I have enough problems convincing people to learn Scheme. I've
even had people beg me to teach them Matlab as a first programming
language, because that is the only language that they needed to get their
work done. Telling them that Matlab's programming language is a creepin
Quoth Daniel Carrera <[EMAIL PROTECTED]>:
...
| I have a lady friend who wants to learn how to program. I just decided
| to teach her Python for practical reasons:
I think when you factor in practical reasons, it makes a lot of sense.
Python's simplicity and suitability for beginners is vastly ov
Erik de Castro Lopo wrote:
Its good for small scripting tasks. Its good for string processing.
I find the dynamic typing a pain.
What's dynamic typing?
I have a lady friend who wants to learn how to program. I just decided
to teach her Python for practical reasons:
Its a great first language for
G'day all.
One more thing...
Quoting Yitzchak Gale <[EMAIL PROTECTED]>:
> o I think that in most of the places where you
>fix the type as Int or Integer, you could leave
>it polymorphic and avoid a lot of coercing.
Even though it looks ugly, converting from an Int to an Integer is reall
> Date: Tue, 10 May 2005 19:02:33 -0400
> From: Daniel Carrera <[EMAIL PROTECTED]>
>
> Hello,
>
> This might be a strange question to ask on a Haskell list, but I do want
> to hear your opinions. What do you think of Python?
>
> To explain where this question is comming from:
>
> I have a lady
On 5/10/05, Daniel Carrera <[EMAIL PROTECTED]> wrote:
> Hello,
>
> This might be a strange question to ask on a Haskell list, but I do want
> to hear your opinions. What do you think of Python?
Python has first class functions and lexical scoping, and encourages
higher-order functions, though to
G'day all.
Thanks for your suggestions. Some comments...
Quoting Yitzchak Gale <[EMAIL PROTECTED]>:
> o I think you are testing w' * w' < n each time, even
>when you are repeating factors of the same prime p.
>You only need to do that when you move to the next p
Good point, thanks.
>
Daniel Carrera wrote:
> Hello,
>
> This might be a strange question to ask on a Haskell list, but I do want
> to hear your opinions. What do you think of Python?
Its good for small scripting tasks. Its good for string processing.
I find the dynamic typing a pain.
> I have a lady friend who wan
[EMAIL PROTECTED] wrote:
Plugin FOR WHAT?
Sorry. OpenOffice.org :-)
To teach how to program in a structured way? Yes.
To teach how to program functionally? Hm. In a primitive sense, why not,
but seriously - no. There are plenty of methods which update in place
some objects, say x.append(y), etc. Th
G'day all.
Quoting Bo Herlin <[EMAIL PROTECTED]>:
> Great! I like this a LOT.
Thanks!
> Im working on a framework for ranking and unranking things where primes
> are just a tiny part:
>
> > data DCountable
> > = Countable Integer
> > | Uncountable
> > deriving (Eq,Show)
> >
> > c
4) She's interested in writing an OOo plugin some day. Python can
do that.
Plugin FOR WHAT?
For OOo (OpenOffice.org)
Bob
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Daniel Carrera writes:
I have a lady friend who wants to learn how to program. I just decided to
teach her Python for practical reasons:
1) Python has a nice IDE-ish thing. It's called "idle". It includes both a
shell and an editor. The interface is simple and clear.
There are others. PyCrust
Hello,
This might be a strange question to ask on a Haskell list, but I do want
to hear your opinions. What do you think of Python?
To explain where this question is comming from:
I have a lady friend who wants to learn how to program. I just decided
to teach her Python for practical reasons:
1
On 5/10/05, Bulat Ziganshin <[EMAIL PROTECTED]> wrote:
> Hello Sebastian,
>
> Tuesday, May 10, 2005, 8:39:23 PM, you wrote:
>
> SS> I think that runtime error
> >> messages given in terms of VALUES instead of compile-time error
> >> messages given in terms of TYPES are easier to understand for n
Bulat Ziganshin discusses with SS:
SS> Types is a very important concept and I think that should be
SS> emphasized in the first lecture. If one goes through types _and_
SS> values from the very beginning a strongly typed language will be of
SS> the same aid to beginners as it is to experts.
imv
Hello Sebastian,
Tuesday, May 10, 2005, 8:39:23 PM, you wrote:
SS> I think that runtime error
>> messages given in terms of VALUES instead of compile-time error
>> messages given in terms of TYPES are easier to understand for novice.
>> also, strict regulations on datatypes are needed for profes
Followups to [EMAIL PROTECTED], please.
I'm working with Lemmih on the designs for Hackage and Cabal-Get.
He's a real trooper, since I'm a total "customer" and have hardly
written a line of code for these tools, but keep coming up with new
requirements.
The basic interaction we would like is this
On 5/10/05, Bulat Ziganshin <[EMAIL PROTECTED]> wrote:
I think that runtime error
> messages given in terms of VALUES instead of compile-time error
> messages given in terms of TYPES are easier to understand for novice.
> also, strict regulations on datatypes are needed for professional
> program
As promised, here's the first attempt:
darcs get http://andrew.bromage.org/darcs/numbertheory/
A few small comments about the function "factor" in
Prime.hs:
o I think you are testing w' * w' < n each time, even
when you are repeating factors of the same prime p.
You only need to do that
Hello Graham,
Monday, May 09, 2005, 2:45:06 PM, you wrote:
GK> When I read the above, I found myself thinking of two styles of Haskell
GK> programming: on one hand there are some, many on these mailing lists, but
GK> I pick Oleg as an exemplar, who continue to baffle me with the amazing
GK> tr
> Well, part of what I was doing was experimenting with what a library like
> this should look like, even more than what it should do. For some
reason,
> I kind of like writing this:
>
> *Math.Prime> is Prime 42
> False
>
> instead of this:
>
> *Math.Prime> isPrime 42
> False
Gre
25 matches
Mail list logo