Talk:Hash from two arrays: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
 
(→‎C#: Response to CrashandDie)
Line 1: Line 1:

== C# ==
== C# ==
//I added this to just have some basic error checking
//I added this to just have some basic error checking
Line 6: Line 5:
I'm not really sure such an absolutely not-understandable line should be on this repository, as most of the users won't even understand it. At the very least, there should be some sort of comment, or just change it and do it on a few lines instead of hashing the source code itself.
I'm not really sure such an absolutely not-understandable line should be on this repository, as most of the users won't even understand it. At the very least, there should be some sort of comment, or just change it and do it on a few lines instead of hashing the source code itself.
--[[User:CrashandDie|CrashandDie]] 09:42, 25 January 2007 (EST)
--[[User:CrashandDie|CrashandDie]] 09:42, 25 January 2007 (EST)

:I replaced the one-liner with an if statement. --[[User:Short Circuit|Short Circuit]] 10:02, 25 January 2007 (EST)

Revision as of 15:02, 25 January 2007

C#

//I added this to just have some basic error checking
int arg_length = arg_keys.Length == arg_values.Length ? arg_keys.Length : 0;

I'm not really sure such an absolutely not-understandable line should be on this repository, as most of the users won't even understand it. At the very least, there should be some sort of comment, or just change it and do it on a few lines instead of hashing the source code itself. --CrashandDie 09:42, 25 January 2007 (EST)

I replaced the one-liner with an if statement. --Short Circuit 10:02, 25 January 2007 (EST)