A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/110730.html below:

Whither SmallScript? (was Re: Integer micro-benchmarks)

Whither SmallScript? (was Re: Integer micro-benchmarks) Whither SmallScript? (was Re: Integer micro-benchmarks)Darren New dnew at san.rr.com
Mon Apr 30 13:00:59 EDT 2001
Andrew Hunt wrote:
> > What do the vertical bars around the f  ("|f|") above indicate ?
> A local variable to the block, used to pass the parameter from File.new.

It's been too long since I used Smalltalk, but doesn't |f| inside a
smalltalk block declare a block-local temporary, rather than an argument? I
thought it was something like

 [ f: g: |q r| code goes here ]
that says "f" and "g" are arguments, q and r are temps?

If I'm remembering right, I'd say it's a minor faux pas to use syntax from
Smalltalk and have it mean something subtly different.

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST).  Cryptokeys on demand.
        schedule.c:7: warning: assignment makes calendar_week 
                          from programmer_week without a cast.

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4