Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Perl VS Python (no VS)

by Anonymous Monk
on Mar 25, 2011 at 03:05 UTC ( #895381=note: print w/replies, xml ) Need Help??

in reply to Re: Perl VS Python (no VS)
in thread Perl VS Python

The problem I have with python is the data typing. Try this in python:
x = " 10 " # spaces in the declaration y = 5 z = x + y
I know this is a no-no but the point is this is no problem in perl. In python you need to convert the data into int. I think a scripting language should handle this for the programmer. python also has a datatype "None" which is very annoying. It can be very annoying when you get data returned from a subroutine that is data-type "None" and then you need to figure out how to get it back to a string. That's python. Python also seems to take away the Perl feature of "There's more than one way to do it". I like this feature and I think a lot of Perl programmers do too.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://895381]
[choroba]: Corion One day, you'll implement the support for window functions in SQLite.
[Corion]: choroba: I admit I've thought about it ;) But I think I'll sooner hack up the Pg parser library to spit out a good parse tree and then hack that up to create Perl code :)
[Corion]: But back when I last looked at the VM of SQLite it seemed way to basic to me to implement anything in it....

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2018-03-22 12:43 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (274 votes). Check out past polls.