Randy Buchholz

Results comments of Randy Buchholz

I think something like the concept of constexpr is a good idea, but I'm not sure how "universal" it should be. When I think of a const, I see something...

Pure functions are deterministic. DateTime() is deterministic, Now() is not. Therefore, DateTime.Now is non-deterministic and not pure.

@eyalsk, you are correct that the deterministic/pure relationship is not inverse, nor is it symmetric. Though I didn't imply it was. It is simply a condition of purity. ### Schrodinger's...

@Pzixel the relationships need to hold true for all conditions and ordering to be true. I think you are talking about a negation relationship IIRC. #### Inverse (a->b == !a->!b)...

Some thoughts. ### Candidate Requirement The language shall provide the user with the ability to force compile time evaluation of any construct (object or expression) into a const. ### Discussion...

@jnm2, >In general the concept of restricting construction evaluation to things that can be proven invariant at runtime is flawed. Agreed. We are working at compile time to create a...

To get to what makes sense for "all", we can transpose a few things. Let's say we have a language that only allows values that are invariant at design time....

>@magol , but I this discussion has become a bit too unfocused > @CyrusNajmabadi This is an unbelievably massive feature request that ends up realistically saving extremely little I think...

From an implementation perspective, a most basic approach could be an "intellisense assertion". The constexpr tells intellisense "don't check if this is a const, the compiler will". Within the compiler,...

@asdfgasdfsafgsdfa while the "better code" aspect is a plus, I'm thinking of something of something like a bounded-constant or conditional-constant (as in, "under these conditions"). If I define a set...