Reputation
203
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 7
Newest
 Announcer
Impact
~3k people reached

May
30
comment What's the proper way to model this real-world activity that seems to need circular references in OOP?
Also, the information from State which affects gameplay should be stored in Board, as it is part of the current position.
May
30
comment What's the proper way to model this real-world activity that seems to need circular references in OOP?
No need for a custom class MoveList, use List<Move>.
May
8
comment Why do interfaces require methods over members?
Scala is also relatively young and it's widely used
May
8
comment Why is .compareTo() in an interface while .equals() is in a class in Java?
Thread's natural ordering can be the starting time
Apr
27
revised Is template “metaprogramming” in Java a good idea?
added 420 characters in body
Apr
27
answered Is template “metaprogramming” in Java a good idea?
Mar
24
comment Is there a reason to have a bottom type in a programming language?
Yes, the C is bizarre in this, especially in how the pointer and function pointer types are written. But void in Java is nearly the same: not really a type & can't have values.
Mar
24
comment Is there a reason to have a bottom type in a programming language?
@BasileStarynkevitch there are no values of type void, and unit type must have one value. Also, as you pointed out, you cannot even declare a value of type void, that means it's not even a type, just a special corner case in the language.
Mar
24
comment Is there a reason to have a bottom type in a programming language?
void is not even an unit type. void is pretty much useless.
Feb
28
comment Which version of Java should I use for a desktop application to reach the most users?
Java doesn't come preinstalled (unlike .NET on Windoze), so you'll have to include (a subset of) JRE with your application. So, you can use whatever is the best. That means — use latest stable version. (that means now — a version of JRE 1.8)
Feb
22
awarded  Announcer
Feb
13
comment Is throwing an exception an anti-pattern here?
@RobertHarvey Android™ developers talk to themselves all the time. This is a sign of professionalism.
Dec
31
awarded  Yearling
Nov
29
comment Why these attempts to water down Scala with Xtend and Kotlin?
…and it's only supported in Eclipse. Right? And Eclipse is a hell…
Oct
12
comment Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
Okay, but the question is about such possibility in theory & in other/new languages. Your comment talks about Haskell, but this doesn't mean that what is impossible in Haskell is impossible at all.
Oct
12
comment Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
Yes, but what if Num a will really be a type? Is it possible?
Oct
11
comment Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
This will be invalid, of course. But I think that this is not enough to disallow this entirely.
Oct
11
comment Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
Why? if you are talking about expression add x one, the types of add and one can be inferred from runtime type of x, aren't they? And if "generic values" were permitted, a sole value one with unknown concrete type can also exist, and a concrete type will be chosen later, when it's used. Why not?
Oct
10
asked Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
Sep
30
awarded  Excavator