[Pharo-dev] new pharo cheatsheet
self at je77.com
Mon Apr 11 10:34:22 EDT 2016
I agree that enumeration is more useful but it wouldn't be bad to have
something in there to indicate the 1-index nature, such as
*'abcd' at: 2* will result in $b
That's all I was suggesting.
Actually, having some cheat sheet on basic enumeration wouldn't be bad as
that is a real strength of Smalltalk. Mention and illustrate what do:
collect: and select: do. Then mention that there are other ones like count:
On Sat, Apr 9, 2016 at 4:57 AM Cyril Ferlicot D. <cyril.ferlicot at gmail.com>
> Le 08/04/2016 22:08, J.F. Rick a écrit :
> > It looks good. I might mention that most data structures are 1 indexed
> > as most other languages tend to be 0 indexed and that throws people new
> > to the language.
> I use Pharo since 1 year now and I had to use indexes only 3-4 times. I
> think it is more important to say that Pharo have Collections with an
> awesome API.
> Cyril Ferlicot
> 165 Avenue Bretagne
> Lille 59000 France
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev