Ceylon Migration Bot

Results 83 comments of Ceylon Migration Bot

[@tombentley] I would expect a refined `equals()` or `hash` in the presence of `identifying` to be an error. I would also expect the compiler to generate the `equals()` and `hash`...

[@lucaswerkmeister] > The obvious extension would be `ordering` or `comparing` to generate the `compare()` method of `Comparable`. Then the typechecker could warn about/reject `Comparable` being inconsistent with `equals()`. The bad...

[@lucaswerkmeister] @gavinking [mentioned](https://groups.google.com/d/msg/ceylon-users/bayCS1xLU7w/C8a13QLPvpAJ) that `string` should also be auto-generated. How would the resulting string look like? (If the `identifying` attributes were exactly the initializer parameters, then `ClassName(attr1.string, attr2.string)` would make...

[@quintesse] I don't think it should necessarily look like an instantiation, so maybe we could go for something that obviously ain't, let's say `ClassName [foo, bar]`. I'd also go for...

[@lucaswerkmeister] > `ClassName [attr1=foo, attr2=bar]` Looks good > If there are no attributes Then how do we even know that we’re supposed to auto-generate `string`? When there’s no `identifying` annotation...

[@DiegoCoronel] Hi, Lombok it out for a long time, maybe theres something you can learn from them: @ToString: http://projectlombok.org/features/ToString.html @EqualsAndHashCode: http://projectlombok.org/features/EqualsAndHashCode.html (this is interesting) All annotations: http://projectlombok.org/features/index.html This is just...

[@gavinking] It should be: ``` ceylon Point { x=0.0; y=0.0; } ``` of course!

[@quintesse] > Then how do we even know that we’re supposed to auto-generate string? Well a bit like @DiegoCoronel shows in his message, I actually think they aren't directly related.

[@lucaswerkmeister] > It should be: > > ``` ceylon > Point { x=0.0; y=0.0; } > ``` > > of course! I like it (and in fact I’m doing this...

[@quintesse] I don't mind, it's just text, but it _does_ seem to be an instantiation which it is not. And I'd still use only the name if no attributes exist,...