Re: Interesting rant about Scala's issues

2014-04-07 Thread Regan Heath
On Mon, 07 Apr 2014 00:17:45 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/6/14, 10:52 AM, Walter Bright wrote: On 4/6/2014 3:31 AM, Leandro Lucarella wrote: What I mean is the current semantics of enum are as they are for historical reasons, not because they make

Re: Interesting rant about Scala's issues

2014-04-07 Thread Dicebot
On Monday, 7 April 2014 at 10:07:03 UTC, Regan Heath wrote: Got a DIP/spec/design to share? R I think biggest mistake of D enums is merging constants and actual enumerations into single entity which has resulted in weak typing of enumerations.

Re: I'm joining Facebook

2014-04-07 Thread asman
On Sunday, 6 April 2014 at 06:40:41 UTC, Andrei Alexandrescu wrote: On 4/5/14, 3:13 AM, Peter Alexander wrote: Well, I didn't considering this D.announce worthy, but Andrei suggested I post the news. As the title suggests, after over 5 years in the games industry I've decided to shake things

Re: Bountysource activity

2014-04-07 Thread Bruno Medeiros
On 13/03/2014 18:20, Andrei Alexandrescu wrote: https://www.bountysource.com/issues/1325905-shared-phobos-library-doesn-t-work-on-all-linux-distributions Over $2000 in open bounties left: https://www.bountysource.com/trackers/383571-d-programming-language

Re: Interesting rant about Scala's issues

2014-04-07 Thread Eric
On Monday, 7 April 2014 at 12:04:15 UTC, Dicebot wrote: On Monday, 7 April 2014 at 10:07:03 UTC, Regan Heath wrote: Got a DIP/spec/design to share? R I think biggest mistake of D enums is merging constants and actual enumerations into single entity which has resulted in weak typing of

Re: Interesting rant about Scala's issues

2014-04-07 Thread Paulo Pinto
Am 07.04.2014 12:07, schrieb Regan Heath: On Mon, 07 Apr 2014 00:17:45 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/6/14, 10:52 AM, Walter Bright wrote: On 4/6/2014 3:31 AM, Leandro Lucarella wrote: What I mean is the current semantics of enum are as they are for

Re: Interesting rant about Scala's issues

2014-04-07 Thread Regan Heath
On Mon, 07 Apr 2014 16:15:41 +0100, Paulo Pinto pj...@progtools.org wrote: Am 07.04.2014 12:07, schrieb Regan Heath: On Mon, 07 Apr 2014 00:17:45 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/6/14, 10:52 AM, Walter Bright wrote: On 4/6/2014 3:31 AM, Leandro

Re: Interesting rant about Scala's issues

2014-04-07 Thread Andrei Alexandrescu
On 4/7/14, 3:07 AM, Regan Heath wrote: On Mon, 07 Apr 2014 00:17:45 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 4/6/14, 10:52 AM, Walter Bright wrote: On 4/6/2014 3:31 AM, Leandro Lucarella wrote: What I mean is the current semantics of enum are as they are for

Re: Interesting rant about Scala's issues

2014-04-07 Thread Andrei Alexandrescu
On 4/7/14, 5:04 AM, Dicebot wrote: On Monday, 7 April 2014 at 10:07:03 UTC, Regan Heath wrote: Got a DIP/spec/design to share? R I think biggest mistake of D enums is merging constants and actual enumerations into single entity which has resulted in weak typing of enumerations. That ain't

Re: Interesting rant about Scala's issues

2014-04-07 Thread Andrei Alexandrescu
On 4/6/14, 6:49 PM, Walter Bright wrote: On 4/6/2014 4:17 PM, Andrei Alexandrescu wrote: On 4/6/14, 10:52 AM, Walter Bright wrote: I use enums a lot in D. I find they work very satisfactorily. The way they work was deliberately designed, not a historical accident. Sorry, I think they ought

Re: Interesting rant about Scala's issues

2014-04-07 Thread w0rp
On Monday, 7 April 2014 at 21:02:04 UTC, Andrei Alexandrescu wrote: This program compiles and flag free and no cast in sight but fails at runtime. Textbook example of unsound type design. import std.stdio; enum A { x = 2, y = 4 } void main() { A a = A.x | A.y; final switch (a) {