AW: Convenient array & hash iterators & accessors
From: Markus Schaber <m.schaber_at_codesys.com>
Date: Fri, 13 Mar 2015 11:09:11 +0000
Von: Erik Huelsmann [mailto:ehuels_at_gmail.com]
> I understand the point. I note that "explicit" is not a binary quality: there are degrees of it.
> I suppose I want to be writing in a higher level language. Maybe I should just go ahead and really do so.
> Exactly. There's been talk about doing so for much too long without action (other than attempts - including my own) to find a way to "upgrade" C to something less verbose and more expressive.
> I've been long thinking that there are specific areas which are more-or-less stand-alone, might be a good place to start this strategy. One place like that might qualify is the piece of code that deduces the eligeable revisions in merge tracking. That's the code I'm thinking you're now working in?
> What kind of language were you thinking about? One of the languages that came to mind is 'lua' which seems to have a pretty strong focus on being integratable with C code. For lua there are also tools to embed the compiled bytecode in a C library so the entire higherlevel language can be fully encapsulated inside our libraries.
As far as I can see, Lua is dynamically typed, thus not buying us too much in way of compile time type-safety.
We just get exceptions instead of SegV - we can handle them, but we still have the problem of missing test coverage in not-so-common code pathes.
Thus, I tend to prefer _more_ compile time type safety instead of less compared to where we are now (C).
-- CODESYS® a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber_at_codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.Received on 2015-03-13 12:16:03 CET
This is an archived mail posted to the Subversion Dev mailing list.