What do you want in a new web framework?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kay Schluehr

    #31
    Re: What do you want in a new web framework?

    Cliff Wells wrote:
    My single wishlist item (which will probably never happen) is actually
    the *removal* of a single "feature": the distinction between statements
    and expressions. Forget list comprehensions, ternary operators, etc.
    You get them with no additional syntax in expression-based languages. I
    played with Logix a bit (but sadly the project appears dead) and the
    expression-based Python syntax it provides gives me goose-bumps.
    Ironically I would prefer to turn Logix block expressions of the kind

    var = expression:
    SUITE

    into statements to avoid deep and awkward nestings: passing the
    side-effect created by SUITE to var but preserving the distinction
    between expressions and block statements nevertheless. I'm not yet sure
    if the Python 2.5 with-stmt cannot be used for exactly this purpose?

    Note that I'm not completely against blurring the distinction between
    expressions and statements in Python. The Python grammar itself
    contains a basic distinction between statements namely simple_stmt and
    compound_stmt nodes.

    Simple statements are defined by:

    simple_stmt: small_stmt ( ";" small_stmt)* [";"] NEWLINE

    where small_stmt nodes are nodes for assert, print, raise, return,
    assignment etc.

    It took me an evening using EasyExtend to define an enhanced lambda
    that enables expressions like:

    lambda lst: s = sum(lst); return float(s)/len(lst)

    or

    lambda x: print x; x+1

    which are other Logix examples.

    Comment

    • Felipe Almeida Lessa

      #32
      Re: What do you want in a new web framework?

      2006/8/30, Ben Finney <bignose+hate s-spam@benfinney. id.au>:
      re
      struct
      unicodedata
      decimal
      random
      logging
      Queue
      urlparse
      email
      operator
      cStringIO
      math
      cmath
      sets (merged to the language)
      itertools
      os + stat
      time
      tempfile
      glob

      Not that I use them all the time, but they are really useful and
      usually fulfill my needs.

      --
      Felipe.

      Comment

      • Alex Martelli

        #33
        Re: What do you want in a new web framework?

        Steve Holden <steve@holdenwe b.comwrote:
        <http://www.youtube.com/watch?v=hFGz-t5R0BE?>
        Oops, <http://www.youtube.com/watch?v=hFGz-t5R0BE-- not sure how the
        stray trailing questionmark got in, sorry.


        Alex

        Comment

        • Peter Maas

          #34
          Re: What do you want in a new web framework?

          Alex Martelli wrote:
          Peter Maas <peter.maas@som ewhere.comwrote :
          >
          >Cliff Wells wrote:
          >>On Wed, 2006-08-23 at 22:13 +0200, Peter Maas wrote:
          >>>Alex Martelli wrote:
          >[...]
          >>>>I have already suggested to the BDFL that he can remedy this situation
          >>>>in Py3k: all he has to do, of course, is to add a LOT more keywords.
          >>>Here is another remedy: he adds one of the frameworks to the standard
          >>>library :)
          >>That didn't help Tk maintain a monopoly on Python GUI toolkits.
          >I must not be a monopoly. A center of gravity would be nice, too.
          >
          <http://www.youtube.com/watch?v=hFGz-t5R0BE?....
          >
          [it helps to know some Italian,
          No problem: "Centro di Gravità Permanente" = "permanent center of gravity" :)

          Peter Maas, Aachen

          Comment

          • Alex Martelli

            #35
            Re: What do you want in a new web framework?

            Peter Maas <peter.maas@som ewhere.comwrote :
            ...
            I must not be a monopoly. A center of gravity would be nice, too.
            <http://www.youtube.com/watch?v=hFGz-t5R0BE?....

            [it helps to know some Italian,
            >
            No problem: "Centro di Gravità Permanente" = "permanent center of gravity" :)
            Yep, but the lyrics around that title are worthwhile too;-).


            Alex

            Comment

            Working...