And there's lots of D code using that awkward
if () {
}
style. Gross!
I don't particularly like that style, either, but it's used in the ebook because display size is extremely limited and it's more compact.
I'm very much used to this style, but that's probably because it's the standard in the Java world. I'm debating whether it's worth it to retrain myself.