Re: An attack on a mint
Sandro Magi <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
Karp, Alan H wrote: > Literate programming can help here, but programmers need the discipline of changing the vernacular before changing the code. That can be done but rarely is under time pressure. What about pragma assertions? They can be turned into compile time or run time checks of invariants. How about an explicit "seq" object/function, which simply chains functions and/or operations together in sequence. That way sequencing is enforced in the code by the language's semantics, and anyone reading the code will understand that the sequencing was made explicit for a reason. It's a more explicit marker than comments. Sandro