[squeak-dev] Re: [Pharo-project] [ENH] Syntax extension for
continuations
Igor Stasenko
siguctua at gmail.com
Mon Nov 1 03:35:22 UTC 2010
On 1 November 2010 05:24, Levente Uzonyi <leves at elte.hu> wrote:
> On Mon, 1 Nov 2010, Igor Stasenko wrote:
>
>
[snip]
>
> There's #between:and: or you can use better formatting to improve
> readability here:
>
> ((v between: 8r141 and: 8r172) or: [
> v between: 16rE0 and: 16rF6 ] or: [
> v between: 16rF8 and: 16rFE ])
> ifTrue: [ ^Character value: value - 8r40].
>
> or
>
> ((8r141 <= v and: [ v <= 8r172 ]) or: [
> (16rE0 <= v and: [ v <= 16rF6 ]) or: [
> 16rF8 <= v and: [ v <= 16rFE ] ] ])
> ifTrue: [ ^Character value: value - 8r40].
>
>
you know, i could do the same in order to improve readability:
8r141 <= v and: [ v <= 8r172 ] ;;
or: [ 16rE0 <= v and: [ v <= 16rF6 ] ;;
or: [ 16rF8 <= v and: [ v <= 16rFE ] ] ] ;;
ifTrue: [ ^Character value: value - 8r40].
i don't agree that it is less readable. I think you must get used to
it before judging.
Think in a way 'what if i tought it before, would it fell to me less
readable than with parens?'
> Levente
>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>>
>
>
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|