That doesn't work for a standard library - it may make you happy, but the next developer may have very different needs.
That doesn't work for a standard library - it may make you happy, but the next developer may have very different needs. Int32.TryParse() does not distinguish between null and empty strings and it takes only a minute or two to create an extension method and the problem is solved once and forever. public static class StringExtensions { public static Int32? ParseAsNullableInt32(this String self, Int32? fallback = null) { Int32 result; return Int32.TryParse(self, out result) ? result : fallback; } }
Posted by danbruc on Nov 3, 2014, 5:06 PM
Tags
Related issues
- Not sure what you suggest to do.
- Why is this not yet published on the official website and why is there no CVE?
- The biggest problem with having an LLM do this, from what I've observed of at least frontier models, is that the way they are trained...
- The biggest problem with MOND is that it was hand-crafted with additional parameters simply to fit the data.
- (My comment is about detached houses).
- The biggest problem with this is that I can't run my company's own internal benchmarks against this API, because they will be trained int...
Raise real-world problems, find people facing the same issue, and discuss solutions.9,000 issues0 comments
hackernews (Other)
Not sure what you suggest to do.
NewWhy is this not yet published on the official website and why is there no CVE?
NewThe biggest problem with having an LLM do this, from what I've observed of at least frontier models, is that the way they are trained...
The biggest problem with MOND is that it was hand-crafted with additional parameters simply to fit the data.
(My comment is about detached houses).
The biggest problem with this is that I can't run my company's own internal benchmarks against this API, because they will be trained int...
> steer Claude away from over-engineering parts of the system in response to hypothetical concerns.
Why is there no comparison with FLUX 3 Image?
That doesn't work for a standard library - it may make you happy, but the next developer may have very different needs.
That doesn't work for a standard library - it may make you happy, but the next developer may have very different needs. Int32.TryParse() does not distinguish between null and empty strings and it takes only a minute or two to create an extension method and the problem is solved once and forever. public static class StringExtensions { public static Int32? ParseAsNullableInt32(this String self, Int32? fallback = null) { Int32 result; return Int32.TryParse(self, out result) ? result : fallback; } }
Comments (0)
No comments yet. Start the discussion.