Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Bernardo Ezequiel Contreras
the historical anecdote could be nice as part of the class documentation. On Thu, Apr 17, 2014 at 8:59 PM, Alexandre Bergel wrote: > Thanks Eliot for the historical anecdote > > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Alexandre Bergel
Thanks Eliot for the historical anecdote Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Apr 17, 2014, at 1:54 PM, Eliot Miranda wrote: > Hi Alexandre, > > > On Thu, Apr 17, 2014 at

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Clément Bera
2014-04-17 13:00 GMT-07:00 pharo4s...@free.fr : > > On 17/4/14 18:54, Eliot Miranda wrote: > >> If it ain't broke don't fix it. The name BlockClosure isn't incorrect. >> These are blocks implemented as closures. The name MethodContext /is/ >> broken. These /aren't/ just MethodContexts any more

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread pharo4s...@free.fr
On 17/4/14 18:54, Eliot Miranda wrote: If it ain't broke don't fix it. The name BlockClosure isn't incorrect. These are blocks implemented as closures. The name MethodContext /is/ broken. These /aren't/ just MethodContexts any more, they are both BlockContexts and MethodContexts, so collap

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread pharo4s...@free.fr
abergel wrote Well… the whole community of programming language call a closure a closure. Calling a block what is actually a closure may not be a well-marketed move in my opinion. Given that Smalltalkers consider it a block and outsiders would understand the closure part, maybe it is well-name

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Sebastian Sastre
On Apr 17, 2014, at 1:54 PM, Eliot Miranda wrote: > I don't think this is right. Yesterday Clément and I had lunch with Dan > Ingalls and we talked about the origin of blocks. At first blocks were not > even real objects; instead they were just a syntactic construct for delayed > evaluation.

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Eliot Miranda
Hi Alexandre, On Thu, Apr 17, 2014 at 8:21 AM, Alexandre Bergel wrote: > Because what we call a block is actually a closure. Smalltalk-80 invented > blocks, which were not closures at that time. Over the time we found out > that Blocks are not really useful, but instead the humanity largely pref

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Camille Teruel
On 17 avr. 2014, at 17:33, Camille Teruel wrote: > > One thing that confuses me with these terminologies is that it's hard to know > when someone speak about the syntactic construct (that you find in source > code) or about the result of evaluating this construct (that close over an > actual

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Sebastian Sastre
+1 sebastian o/ > On 17/04/2014, at 12:21, Alexandre Bergel wrote: > > Because what we call a block is actually a closure. Smalltalk-80 invented > blocks, which were not closures at that time. Over the time we found out that > Blocks are not really useful, but instead the humanity largely pr

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Camille Teruel
One thing that confuses me with these terminologies is that it's hard to know when someone speak about the syntactic construct (that you find in source code) or about the result of evaluating this construct (that close over an actual environment). What I mean is that a block can be evaluated se

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Clément Bera
2014-04-17 6:57 GMT-07:00 Sebastian Sastre : > > On Apr 17, 2014, at 10:35 AM, Alexandre Bergel > wrote: > > the whole community of programming language call a closure a closure. > Calling a block what is actually a closure > > > javascript is teaching every day to thousands what a real Closure i

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Manfred Kröhnert
Hi, I just wanted to mention that Apple also added 'Closures' as 'Blocks' to Objective-C (respectively C): https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html Best, Manfred On Thu, Apr 17, 2014 at 4:45 PM, Y

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Alexandre Bergel
Because what we call a block is actually a closure. Smalltalk-80 invented blocks, which were not closures at that time. Over the time we found out that Blocks are not really useful, but instead the humanity largely prefer closure. But ok, this is not a pressing thing. Was just a tough. Just to

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Yuriy Tymchuk
It’s like saying that we have to run Pharo on JVM because everyone is doing that. In 80s block was invented. Why should we rename it because of some other languages? Uko On 17 Apr 2014, at 16:35, Alexandre Bergel wrote: > Well… the whole community of programming language call a closure a clos

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Noury Bouraqadi
+1 for BlockClosure :-) On 17 avr. 2014, at 15:44, Sean P. DeNigris wrote: > abergel wrote >> Well… the whole community of programming language call a closure a >> closure. Calling a block what is actually a closure may not be a >> well-marketed move in my opinion. > > Given that Smalltalkers con

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 15:57 schrieb Sebastian Sastre : > > On Apr 17, 2014, at 10:35 AM, Alexandre Bergel > wrote: > >> the whole community of programming language call a closure a closure. >> Calling a block what is actually a closure > > javascript is teaching every day to thousands what a re

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Sebastian Sastre
On Apr 17, 2014, at 10:35 AM, Alexandre Bergel wrote: > the whole community of programming language call a closure a closure. Calling > a block what is actually a closure javascript is teaching every day to thousands what a real Closure is every day, so yeah that would be probably better

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Sean P. DeNigris
abergel wrote > Well… the whole community of programming language call a closure a > closure. Calling a block what is actually a closure may not be a > well-marketed move in my opinion. Given that Smalltalkers consider it a block and outsiders would understand the closure part, maybe it is well-na

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Max Leske
I usually say “block” but I have nothing against a name change. I think “closure” would be an intention revealing name, I like it. And I’m willing to say “closure” from now on :) On 17.04.2014, at 15:35, Alexandre Bergel wrote: > Well… the whole community of programming language call a closur

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Alexandre Bergel
Well… the whole community of programming language call a closure a closure. Calling a block what is actually a closure may not be a well-marketed move in my opinion. Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;.

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Sebastian Sastre
On Apr 17, 2014, at 10:08 AM, Yuriy Tymchuk wrote: > I would rather rename is to Block, as everyone is calling it a “block”. That might be actually a good idea sebastian o/ PS: thinking in that line there is also ‘Context’ as, conceptually, what these blocks of code want to do is to keep th

Re: [Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Yuriy Tymchuk
I would rather rename is to Block, as everyone is calling it a “block”. Uko On 17 Apr 2014, at 16:01, Alexandre Bergel wrote: > Hi! > > Just wondering, would it not make sense to rename BlockClosure into Closure? > > Cheers, > Alexandre > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;

[Pharo-dev] Closure vs BlockClosure

2014-04-17 Thread Alexandre Bergel
Hi! Just wondering, would it not make sense to rename BlockClosure into Closure? Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.