← Back to team overview

ooc-dev team mailing list archive

Re: New ORC - Keyword arguments

 

No, '=', as '+=', '-=', '/=', '*=' are forbidden in expressions (getting me
the hate of many one-liners-lovers), so there's no ambiguity.

And yes, a definition is a valid expression, so ':' wouldn't really belong
here. Besides, we usually have 'name: Type' so 'name: Value' would be weird.

Amos Wenger (nddrylliog)

On Mon, May 10, 2010 at 11:30 AM, Bart van der Werf <bluelive@xxxxxxxxx>wrote:

> Intresting proposal.
>
> is = allowed in expressions currently like it is in c ?
>
> then there is a risk that:
>
> f(a=x) != f((a=x))
>
> To avoid this in other c-likes ":" is often used, however that might be
> confusing due to ooc's definition syntax. (is a definition a valid
> expression ?)
>
>
> On Mon, May 10, 2010 at 11:15 AM, Amos Wenger <amoswenger@xxxxxxxxx>wrote:
>
>> Hi everyone, just relaying an ORC from wandernauta on IRC:
>>
>> http://gist.github.com/395852
>>
>> Any comments?
>>
>> Amos Wenger (nddrylliog)
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~ooc-dev
>> Post to     : ooc-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ooc-dev
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~ooc-dev
> Post to     : ooc-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ooc-dev
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References