Arc (programming language): Difference between revisions

Content deleted Content added
Minor fixes
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 49:
== Examples ==
[[Hello world]] in Arc :
<sourcesyntaxhighlight lang="lisp">
(prn "Hello, World")
</syntaxhighlight>
</source>
 
To illustrate Arc's terseness, Graham uses a brief program. It produces a form with one field at the url "/said". When the form is submitted, it leads to a page with a link that says "click here", which then leads to a page with the value of the original input field.<ref>{{cite web |url=http://www.paulgraham.com/arcchallenge.html |title=Take the Arc Challenge |last=Graham |first=Paul |date=February 2008 |website=PaulGraham.com |access-date=2018-12-05}}</ref>
<sourcesyntaxhighlight lang="lisp">
(defop said req
(aform [onlink "click here" (pr "you said: " (arg _ "foo"))]
(input "foo")
(submit)))
</syntaxhighlight>
</source>
 
==Versions==