On Friday, 6 December 2013 at 05:32:56 UTC, Mineko wrote:
On Friday, 6 December 2013 at 05:22:07 UTC, Ali Çehreli wrote:
On 12/05/2013 08:43 PM, Mineko wrote:
> I might be missing out on some D-only features
The first thing I've noticed is that you are not using UFCS,
perhaps because you don't like it (yet ;) ) but look how
natural the syntax becomes:
existing code (my indentation):
temp = findSplitAfter(findSplitBefore(find(source, var~" =
"),
";")[0], " = ")[1];
code taking advantage of D's UFCS (I hope I got it right; I
have not compiled it):
temp = source
.find(var~" = ")
.findSplitBefore(";")[0]
.findSplitAfter(" = ")[1];
Ali
I didn't even know that existed, I'll jump on that right now.
I went through 8 hours of hell for that.. But it was worth it,
things do look nicer with UFCS stuffs. (No wonder why they say
you don't need a scripting language with D..)
It's on my fork if you wanna check it out:
https://github.com/MinekoRox/Breaker-3D-Game-Engine
Anyways, back to the main subject, anyone know anything that I
could be missing D-only wise as far as file loading, parsing,
creating, etc the stuff in /utility/io.d is doing?