JackDunaway Posted January 5, 2013 Report Share Posted January 5, 2013 Ran across a new programming language today - vigil from https://github.com/munificent/vigil ---- and you thought *LabVIEW* sometimes leaned too-restrictive in favor of being beginner-friendly. From the vigil readme: Syntax and semanticsVigil is very similar to Python with the minor proviso that you must provide a main() function which will be automatically called for you.The implore statement to beseech your needsOften, a function will require that parameters have certain desireable properties. A function in Vigil can state what it requires by using implore: The swear statement to state what you provide in returnIf a good caller meets its obligations, the onus is thus on you to fulfill your end of the bargain. You can state the oaths that you promise to uphold using swear: Runtime vigilanceThis is where Vigil sets itself apart from weaker languages that lack the courage of their convictions. When a Vigil program is executed, Vigil itself will monitor all oaths (implorations and swears) that have been made. If an oath is broken, the offending function (the caller in the case of implore and the callee in the case of swear) will be duly punished.FAQIs this serious?Eternal moral vigilance is no laughing matter. I am now seriously considering using the phrase "The ever vigilant watchers of your code have found malfeasance in: %s" for of my custom error call chains in LabVIEW. 2 Quote Link to comment
mje Posted January 6, 2013 Report Share Posted January 6, 2013 I love the solution if your code breaks its oaths and how the iterative nature of the cleaning implies "Several invocations may be required to fully excise all bugs from your code." Amusing. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.