TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Legal docs should be written like code.

10 点作者 brianl将近 14 年前
I've been getting a bit crossed eyed reading a bunch of crap legal documents. I now recognize patters and see that words, phrases, and structure have specific meanings. A lot of that are definition statements and conditional constructs.<p>Now I see lawyers as programmers who write really crappy code with an ancient language and grammer.<p>It would make a lot of sense to modernize their tool set and structure their documents like well written code.<p>"Your honor, the defendant violated the contract on line 325 by failing to perform the 3rd AND condition."

5 条评论

mark-r将近 14 年前
I've often been glad I'm not a lawyer. Could you imagine writing code (a contract) that you can't test before putting into production, and running it on a processor (Judge) that would execute it inconsistently from every other processor?
ubasu将近 14 年前
You could always have your own internal "compiler" which will translate from this language to your "machine" code. Similar alternative would be to express the flow of the document in Lisp/Scheme. That way you can quickly spot bugs in the document.
Andrew_Quentin将近 14 年前
Humans are much more complicated.
mattee将近 14 年前
They are doing something like this for accounting and financial information via XBRL.
badkins将近 14 年前
man, I have been thinking this for years. If ilaws were written in code there would be no reason to have judges or lawyers. We have those only because spoken language is ambiguous and open to interpretation.
评论 #2588614 未加载