Scheme does not have a return statement, so, no, ^ is not absolutely necessary. Removing it from the language, will probably significantly reduce the average method size.
Alexandre On 15 Sep 2011, at 03:01, Stéphane Ducasse wrote: > Hi > > this is early (at least to me) and I was asking myself a probably stupid > question. But I would like to get your smart answers :) > > does a smalltalk like language really need explicit return in []? > > Q1 When are they absolutely required? > Q2 What replacing mechanisms would be needed? > Q3 What would we gain from an implementation stand point? > It seems that in resilience lars removed them and more. > > Stef > > for Q1 I see > > foo > x isZero ifTrue: [^ 33]. > self continue -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
