[Monodevelop-devel] Issues with case insensitivenes on Windows
Michael Hutchinson
m.j.hutchinson at gmail.com
Fri May 15 22:00:51 EDT 2009
On Fri, May 15, 2009 at 5:26 PM, Lluis Sanchez Gual <lluis at novell.com> wrote:
> One solution I'm pondering the creation of a new FilePath struct to be
> used instead of string for all file paths. This struct would only
> contain one string and would override all comparison methods which would
> be case insensitive only on Windows. With conversion operators in place,
> using this struct instead of string should be straightforward.
>
> However, this is a big change in the api, so I'd like to get some
> feedback about it. Other than the debugger issue, everything else seems
> to work fine, so I'm not sure it is worth the effort. What do you think?
I think it's useful to have stronger "typing" for strings, and changes
like this would be better to make sooner rather than later. The struct
could also store whether it's a relative path, and have utility
methods (Combine, GetRoot, GetExtension, etc).
I was thinking about a similar "typing" trick for solution
configurations vs. project configurations, since I'm pretty sure
they're used interchangeably in many places when they shouldn't be.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-devel-list
mailing list