Reputation
3,636
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 10 19
Impact
~286k people reached

Oct
20
comment Why C# is not statically typed but F# and Haskell are?
@jozefg: you're right, but in this context the formalism and the actual implementation are irrelevant. Modern languages are often multiparadigm, and can support both the ways in a more or less simple way. C# just supports both the paradigms. Saying "it's not one", just because "it has also the other" (like the speaker says) is instrumental to other means, but not to proper definition of terms.
Oct
20
comment Why C# is not statically typed but F# and Haskell are?
I'm an up-voter: your answer has nothing wrong. But since what we are talking about is a religion (or better: two religions at the same time) every believer in one of the two down-votes. Who knows both of them up-votes (but they are few, and considered miscredents from all the others), and all the real "atheist", simply don't care, and use C++11
Oct
20
answered Why C# is not statically typed but F# and Haskell are?
Oct
15
comment Can *any* program task be expressed without state?
@wirrbel: "state" is the thing "transformation" transform. Without it you can only transform void into void and all transformations are identical to the identity. In this degenaral universe true and false are the same.
Oct
14
awarded  Nice Answer
Oct
14
comment Can *any* program task be expressed without state?
@BillyONeal: Sate is something physical. You can see it or hide it, but doesn't disappear. There cannot be something that is both "stateful" and "stateless". You can describe it starting from state (and transformation is a consequence) of from transformation (and state is an implicit prerequisite). If there is no "state" there is either no computation or no time/space/energy.
Oct
14
comment Can *any* program task be expressed without state?
@wirrbel: state is something physical (think to linear differential equations systems or to discrete systems). A state is introduced every time on thing calls another, otherwise no return is possible, since you don't know where you come from. The fact you don't (need to) "reason" about it doesn't make it disappear.
Oct
14
comment How important it is to fix memory leaks?
@VladimirKocjancic: +1 for "feature"
Oct
14
answered Can *any* program task be expressed without state?
Oct
14
comment Can *any* program task be expressed without state?
Your same argument can be reverted saying that being lamba calculus equivalent to touring machines, every computation must have a (more or less hidden) state. Whether is is represented as external to the code (by means of variables) or internal to the flow (by means of stack-based function call) always "state" is.
Sep
2
awarded  Yearling
Aug
23
comment Without C++-like destructors, how do we return resources that aren't managed by garbage collector in Java?
Yes, I can even call yourself an object, if you like. Are you human or a compiler?
Aug
22
comment Without C++-like destructors, how do we return resources that aren't managed by garbage collector in Java?
Today C does, not the C (1989) I was raferring to.
Aug
22
comment Without C++-like destructors, how do we return resources that aren't managed by garbage collector in Java?
In C you don't allocate "objects": malloc allocates memory you use to store data. In C++ new allocates constructed object on the dynamic memory normally allocated via C malloc. The Idea of an Object to construct and destroy comes with C++, not C.
Aug
22
revised Without C++-like destructors, how do we return resources that aren't managed by garbage collector in Java?
edit after OP question edit
Aug
22
comment C++ class with only pure virtual functions: what's that called?
A "protocol" is the "sequence of actions that have to be taken from cooperating interfaces to perform certain tasks". It cannot be a sinonimous of "interface", since it is defined around interfaces. A protocol describes how interface have to be used. an interface describes what an object exposes.
Aug
22
answered Without C++-like destructors, how do we return resources that aren't managed by garbage collector in Java?
May
12
answered Heap overflow vs stack overflow
May
11
awarded  Nice Answer
Apr
20
comment Nested classes vs namespaces
I don't see any nested class ...