Wait two seconds

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Wait two seconds

Torsten Bergmann
Sean wrote on Twitter (https://twitter.com/SeanDenigris)
>At times I'm still floored by the simple elegance of #Smalltalk. Today's smile-evoking snippet: `2 seconds asDelay wait`… perfectly said :)

Why so complicated

  "2 seconds wait"

will do as well, is more compact and crystal clear ;)

Have fun
T.

Reply | Threaded
Open this post in threaded view
|

Re: Wait two seconds

Sean P. DeNigris
Administrator
Torsten Bergmann wrote
 "2 seconds wait"
Showoff ;)
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Wait two seconds

Pierre Chanson
Hi there,

I really liked the video, sent it to a friend to convince him to try Pharo... It also remind me that there is this really nice tool, the finder. Sadly, on the first try I had a bug:

this request by example is working
#('bc' 'ab')..#('ab' 'bc')

this one is not
{'bc'. 'ab'}..{'ab'. 'bc'}

Pierre

2015-05-11 18:48 GMT-03:00 Sean P. DeNigris <[hidden email]>:
Torsten Bergmann wrote
>  "2 seconds wait"

Showoff ;)



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Wait-two-seconds-tp4825675p4825890.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: Wait two seconds

Sean P. DeNigris
Administrator
Pierre Chanson wrote
this one is not
{'bc'. 'ab'}..{'ab'. 'bc'}
Interestingly, `#('bc' 'ab').{'ab'. 'bc'}` works

N.B. in general you can leave out the extra $.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Wait two seconds

Sean P. DeNigris
Administrator
In reply to this post by Pierre Chanson
Pierre Chanson wrote
I had a bug...
Issue 15540: Finder Should Accept Run-Time Arrays
https://pharo.fogbugz.com/default.asp?15540

I traced the problem to Finder>>findSelector:, which uses #parseLiterals, but:

'{1. 2}' parseLiterals. "#(#'{' 1 #'.' 2 #'}')"
'#(1 2)' parseLiterals. "#(#(1 2))"
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Wait two seconds

stepharo
Indeed.
I would love somebody to work on a new generation example finder as
mentioned in PharoTopics :)
Stef

Le 14/5/15 18:20, Sean P. DeNigris a écrit :

> Pierre Chanson wrote
>> I had a bug...
> Issue 15540: Finder Should Accept Run-Time Arrays
> https://pharo.fogbugz.com/default.asp?15540
>
> I traced the problem to Finder>>findSelector:, which uses #parseLiterals,
> but:
>
> '{1. 2}' parseLiterals. "#(#'{' 1 #'.' 2 #'}')"
> '#(1 2)' parseLiterals. "#(#(1 2))"
>
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/Wait-two-seconds-tp4825675p4826367.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>