News for hackers. Stuff that matters.
Re:Constructors in Ceylon by gavinking on Monday June 22, 2015 @11:19AM (#9758905)
Yes of course. I'm at the gym right now, so give me a chance to get home, read up on Scala so I can be sure I'm not saying anything wrong, and then I'll reply. Is that OK?
Re:Constructors in Ceylon by duaneb on Monday June 22, 2015 @11:49AM (#9759143)
Please look at "case classes" and their associated constructors, which is where I see the most similarity. I am sure they are implemented very differently, but I am not sure exactly what the benefits of ceylon might be over a more "cluttered" scala-style approach built on top of java class-and-interface MRO.
Re:Constructors in Ceylon by gavinking on Monday June 22, 2015 @01:41PM (#9759915)
The equivalent of Scala's case classes is an enumerated class with an "of" clause. Constructors aren't really relevant here, AFAICT.
Re:Constructors in Ceylon by perneto on Monday June 22, 2015 @11:40AM (#9759059)
Of course! No need to rush.