or Connect
New Posts  All Forums:

Posts by JavaCowboy

Does USB Type-C support ethernet? I'm guessing not. I would argue this is an essential feature for pro and business users, given bandwidth and network security issues.
The JVM performs very well nowadays, contrary to some of the myths out there about Java being "slow". There are also continual improvements to garbage collection (ex Red Hat has introduced a new garbage collector for OpenJDK). There are certain limitations still to the JVM, but they'll largely be resolved when modules and value types are introduced in Java 9 and 10, respectively.However, whether a language is well designed and how well it's runtime performs are largely...
So why is Swift any different from these other languages, at least one of which I'd argue Swift is inferior to?
 What's wrong with any of the alternative JVM languages such as Ceylon, Kotlin, Scala, Groovy, etc?
 One good thing about Swift is because it's such a new language there's a good chance they'll adopt this feature soon.
 Let me ask you a question. Can I do this with Swift enums (as it's not clear from the Swift language guide):enum StringOrIntegercase Stringcase IntegerDo I need to define my own case classes within the enum, or can I wrap an enum around everything?What I'm really asking is can I do the equivalent of String|Integer easily in Swift via an enum.And, again, String|Integer is a contrived example. I'm asking about doing this for any classes otherwise unrelated in the class...
 In a JVM language, creating extra classes leads to more classes needed by the classloader and more classes allocated to the heap (there are no structs/value types at the JVM level presently). I know Swift does have structs which makes this more of a moot point for that language. I realize in an object-oriented language you need to create classes to get work done, but with Java 8 lambdas there will hopefully be a lot less classes needed and several class-heavy design...
 Not the same thing.If you read this, you'll understand:http://ceylon-lang.org/documentation/1.1/tour/types/
 I guess we should agree to disagree, because I see a monumental difference between syntactic sugar around a struct with conditional members and a fundamental feature of many language's type systems, including Haskell, ML, OCaML, Ceylon, etc.If I want a union between String and Integer, how do I do this in your subclassing example? I would need to treat both as Object? In my switch statement, I would need to explicitly check for String or Integer and then throw an...
Read thishttp://en.m.wikipedia.org/wiki/Tagged_union
New Posts  All Forums: