Likhit

India

Age: 21

Mar
7
asked Strongly typed matrices in F#
Feb
22
comment How to create a new ImageData object independently?
@Domenic ha ha, thanks for the link. I'm actually feeling rather proud now, although I know it isn't a big deal. But hey, a student's question leading to a revision of the spec isn't a small deal either.
Sep
22
revised How can I create a recursively typed graph(a graph of graph)?
edited body
Sep
22
revised How can I create a recursively typed graph(a graph of graph)?
added 186 characters in body
Sep
22
comment How can I create a recursively typed graph(a graph of graph)?
Hey, I just edited my question to give the reason why this solution won't work. However, I must say I'm surprised at the succinctness of the Network type. It took me 3 hours to figure out what exactly was happening(my lack of knowledge of haskell's Map and Set data types did not help).
Sep
22
revised How can I create a recursively typed graph(a graph of graph)?
added 1052 characters in body
Sep
21
revised How can I create a recursively typed graph(a graph of graph)?
edited tags
Sep
21
asked How can I create a recursively typed graph(a graph of graph)?
Sep
11
awarded Popular Question
Sep
11
accepted What is the difference between using a delegate and using Func<T>/Action<T> in a method signature?
Sep
11
comment What is the difference between using a delegate and using Func<T>/Action<T> in a method signature?
Thanks, that cleared things up. The last point return type results in the value returned by the last added member, is there a common use case for this? I can't see why someone would need to execute n functions on the same value only to return only one of the results. Also note that my question was more along the lines of "why would I need a delegate when I have Action/Func?"; I was under the impression that Func and Action came before delegates. It would be great if you could add a section explaining WHEN to use delegates over Action/Func. Thanks.
Sep
11
asked What is the difference between using a delegate and using Func<T>/Action<T> in a method signature?
Jul
26
accepted Ensuring that the main thread doesn't die before execution of all an asyncronous method
Jul
26
comment Ensuring that the main thread doesn't die before execution of all an asyncronous method
If you mean using Thread.Sleep, then I can't because some times it may take anything between minutes to days to hours to complete. I know of no other way to make the main thread wait.
Jul
26
comment Ensuring that the main thread doesn't die before execution of all an asyncronous method
@SriramSakthivel Console app. But does it make a difference?
Jul
26
asked Ensuring that the main thread doesn't die before execution of all an asyncronous method
Jul
26
accepted Is it possible to have a compiler which optimizes a = func(a)?
Jul
12
awarded Teacher
Jul
3
comment Is it possible to have a compiler which optimizes a = func(a)?
@HotLicks, that is exactly my question. While it may be possible to create optimizations for particular data structures, is there a way to generalize such optimizations for all data structures. Maybe by enforcing some constraints on the language?
Jul
3
comment Is it possible to have a compiler which optimizes a = func(a)?
@antiduh no that's not what I mean. I edited the question and added an example.
1 2 3 4 5