941 reputation
412
bio website
location
age 32
visits member for 2 years, 11 months
seen Jul 17 at 16:59

Nov
8
awarded  Editor
Nov
4
comment Local Stack vs Call Stack
@Pubby Often there is no benefit, especially if you are using a functional language with compiler optimizations related to recursion. If you are using a language like javascript, there can be performance benefits, though beware premature optimizations. An explicit stack can also be more elegant in some ways, a depth first traversal of a tree using an explicit stack can be changed into a breadth first traversal be replacing the stack with a queue.
Nov
4
comment Local Stack vs Call Stack
@Mason I found the comments searching for "LKM".
Nov
4
answered Local Stack vs Call Stack
Nov
4
awarded  Critic
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, I would I agree that value types are not meant to have null values, and that I discussed more about how they don't have null values.
Nov
3
awarded  Enlightened
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, the point of talking about the "binary representation" is not that it is binary, but that it is a concrete low level thing that maps to the abstract high level values of the type, and I wanted to talk about the mapping.
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, .Net languages such as C# provide syntactic sugar for the Nullable<T> type to allow treating a Nullable<T> value with HasValue = false the same as a null reference type. However, having worked with MSIL code directly, I can tell you there are differences. Like if I want to load a null value for a reference type onto the stack, I can use "ldnull", but this does not work for Nullable<T>.
Nov
3
comment In .net, why can't values of intrinsic data types (such as DateTime) be null?
@Conrad, yes the Nullable<T> type itself defines representations for null. This a feature of that particular type and not of value types, like null values are a feature of reference types. I meant to answer the question of why in general value types cannot be null, not claim that you couldn't make a value type that could represent null.
Nov
3
awarded  Nice Answer
Nov
3
answered In .net, why can't values of intrinsic data types (such as DateTime) be null?
Nov
2
answered Should I HTML encode all output from my API?
Oct
26
answered What is the good explanation of Tennent's Correspondence Principle?
Sep
23
answered How to help team members value each others input?
Sep
20
awarded  Analytical
Sep
19
awarded  Teacher
Sep
19
answered Are database schema migrations a problem in production environments?
Sep
1
awarded  Supporter