Back to explore

เขียน if statement ใหม่ด้วย Jev: เงื่อนไขภาษาธรรมชาติ

นักพัฒนาแสดงให้เห็นว่า Jev แทนที่นิพจน์บูลีนที่ซ้อนกันลึกด้วยประโยคภาษาธรรมชาติหนึ่งประโยค ทำให้ตรรกะโค้ดง่ายขึ้น

We rewrote the oldest primitive in programming. The if statement takes a sentence now, and Jev decides. That nested boolean mess eleven rules deep, four AND/ORs, one comment nobody understands anymore? Replace all of it with "if this expense is allowed under the expense policy."

เขียน if statement ใหม่ด้วย Jev: เงื่อนไขภาษาธรรมชาติ 1
· 3 likesOpen on X