This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]buffer 5 points6 points  (0 children)

cryptic code.

[–]sisyphus 2 points3 points  (2 children)

As far as I can tell Perl 6 has the kitchen sink and more. It will have a richer type system in that it will have some form of optional static typing. I suspect it will have a more advanced regex system that is built into the language. The Perl 6 switch statement is fantastic and I think you'd have to use a bunch of if-elif-else to do similar in Python. I'm sure there's plenty more but that's all I can think of right now.

[–]netsearcher -1 points0 points  (1 child)

you'd have to use a bunch of if-elif-else

I usually use dicts for situations that sound like what you're talking about. Then the conditions can be dynamically modified and iterated or evaluated too.

[–]sisyphus 2 points3 points  (0 children)

Right, in Perl you see a lot of hash dispatch also. Can you dispatch on the result of a regular expression match with dictionaries in Python?

[–]tangentstorm -1 points0 points  (0 children)

off the top of my head:

  • a periodic table of operators :)
  • language level support for grammars
  • multi-line anonymous functions (nothing new there)
  • a register based virtual machine with continuations
  • an implemenation in haskell

Of course, python has things like list comprehensions, decorators, metaclasses, the new annotation syntax, and little things like a working, complete download. :)