--
You received this message because you are subscribed to the Google Groups "Reia" group.
To post to this group, send email to re...@googlegroups.com.
To unsubscribe from this group, send email to reia+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reia?hl=en.
How about removing 'and' and 'or' completely?
Rationale:
* They are redundant if they are just aliases
* it would be confusing to see Reia code which uses 'and' and 'or',
but in a completely different way to Ruby/Perl.
> I definitely want to honor Ruby's behavior and have and/or/||/&& return theDefinitely: foo = bar || baz
> last expression evaluated.
Or even better, how about removing || and && completely?
>>
>> Rationale:
>> * They are redundant if they are just aliases
>
> I don't think TIMTOWTDI is a bad thing
It is a bad thing when it comes to syntax. It's a distinct advantage
if a certain construct can only be expressed idiomatically in one
obvious way, or at least one way for each style chosen.
For example in Python, using an imperative style, there is only one
obvious way to sum up some items. The same holds true if you choose to
use a more functional style.
>
>>
>> * it would be confusing to see Reia code which uses 'and' and 'or',
>> but in a completely different way to Ruby/Perl.
>
> People generally avoid using "and" and "or" in Ruby altogether because they
> find the precedence confusing. I'd like to change that.
>>
>> > I definitely want to honor Ruby's behavior and have and/or/||/&& return
>> > the
>> > last expression evaluated.
>>
>> Definitely: foo = bar || baz
>
> Yep, presently broken in Reia :(
>
> --
> Tony Arcieri
> Medioh! A Kudelski Brand
>
Or even better, how about removing || and && completely?
> I don't think TIMTOWTDI is a bad thingIt is a bad thing when it comes to syntax. It's a distinct advantage
if a certain construct can only be expressed idiomatically in one
obvious way, or at least one way for each style chosen.
For example in Python, using an imperative style, there is only one
obvious way to sum up some items. The same holds true if you choose to
use a more functional style.
It's helpful to have an official idiomatic style because other
people's code becomes much easier to read. If you don't have to wade
through weird syntax, things are easier. Consistency helps.
It's helpful to have an official idiomatic style
in Ruby && comes above ||
--