Linked by Thom Holwerda on Thu 30th Jun 2005 12:26 UTC
General Development For Linux users, HLA is a strong programming tool that allows them to create powerful programs on a variety of different levels. As HLA becomes more feature-rich, additional applications will be written using HLA under Linux. With HLA and Linux, programmers can develop new and exciting applications anyone can use. Read more.
Permalink for comment
To read all comments associated with this story, please click here.
Re: From the Developer #2
by ylai on Fri 1st Jul 2005 04:00 UTC

The *nice* thing about the fact that HLA does *not* use C's escape character sequence syntax is that it is much easier to create such strings to pass on to other (C) programs and functions that *do* want to see these escape sequences.

I think arguing this is "nice" is quite far fetched.

That is, if you really want to pass the string "hello worldn" to some other code, including the backslash and the n (without them being converted to a newline), then HLA's string syntax is far cleaner.

Can you also give a compelling reason why most people and in most cases want to do stuff like this? Unless in situations like writing a C parser, there is actually no good reason for this, especially in mixed programming environment. The escape sequences in C are immediately translated by the compiler into their ASCII representation (and not by run time hooks in the I/O library), and you must have users with C-escape interpreting eyes if you see a point to pass strings with literal C escapes to e.g. printf.

I have the feeling that you are simply trying to defend some not really helpful ideosyncracies.