Re: [Vala] type MIN and MAX
- From: "Levi Bard" <taktaktaktaktaktaktaktaktaktak gmail com>
- To: pancake <pancake youterm com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] type MIN and MAX
- Date: Mon, 15 Sep 2008 08:32:37 -0400
What about this?
http://blog.stevex.net/index.php/string-formatting-in-csharp/
Just taking {0} {1}...
What would the c#-style format give us that the printf-style doesn't?
If you're just going to use an item's to_string() method, you can
invoke it explicitly and use %s.
The c#-style formatting has the additional pitfall of letting you
inadvertently do: string.Format("{0} blah {1}", foo);
I see a fair number of those, and they don't get caught until runtime.
--
http://homes.eff.org/~barlow/EconomyOfIdeas.html
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]