[Grace-core] On numbers and objects

Andrew P. Black black at cs.pdx.edu
Tue Nov 9 09:20:53 PST 2010


On 9 Nov 2010, at 2:32, James Noble wrote:

>>> we're not going to use || for egal
>> Are you going to explain why?
> 
> sorry - busy this evening on other things
> 
> I think the equality operator needs to be some version of = or == - probably ==

I thought that the whole point of using egal was that it was DIFFERENT from pointer equality, which is what most old timers will think when they see ==.   Maybe I'm missing your idea.   Perhaps a blog post on equality is in order?


> too many people read || as "OR"
> 
> for comments, we can choose: // /* is more accepted in the C/Java world (Python uses #)
> The other consideration is whether we'd rather have || or // for an operator

I don't really care what we use for comments -- and I don't see the need for two kinds, either.  I imagine that I will be writing and reading comments in an IDE, which will render them in grey italics in balloons on hover, so the ASCII symbol will be irrelevant to me.  So, on reflection, || is a nice operator, and we should save it for that.




More information about the Grace-core mailing list