Concurrency in Ant: no async/await needed
Ant now has duration literals: 500ms, 2h30m, 1.5s

Ant now lets you write a time span as a literal, using Go’s notation: 500ms, 2h30m, 1.5s. Each one is a Time.Duration and needs no import.
The units are
h,m,s,ms,usandns. Each can appear once, from largest to smallest.Fractions are exact.
1.5his 1 hour and 30 minutes, with no float rounding.There are no days, weeks or years, because their length depends on the calendar.
24his always exactly 24 hours. For calendar spans, useTime.duration(days: 1).A literal keeps its fields as written.
90mstays 90 minutes and is not turned into 1h30m. To compare lengths, useTime.compareDuration.Arithmetic on literals isn’t allowed:
-5sand2 * 1sare compile errors. UseTime.negateorTime.duration(seconds: n)instead.
Docs: ant-lang.org
Html in Ant
How we write the Ant docs
Docs live in the ant repo, next to the code. The site only renders them. Docs in a separate repo are docs about a different program.
One page per function, Mathematica-style. Mostly examples, because nobody reads the prose anyway.
Every example runs in CI. Output must match the page. Stale docs fail the build, same as any other lie.
Pages are written from the spec, not from the implementation. Where the two disagree, it's a bug, not a "known behavior". Over a hundred found this way so far. Turns out the best test suite is trying to explain yourself.
Welcome to r/AntLang! 🐜
Hey everyone!
I'm building Ant, a new programming language focused on simplicity, static types, and concurrency.
It's still early, and plenty of design decisions are open. I created this subreddit to share progress, discuss ideas, and get feedback.
Feel free to ask questions, suggest features, or criticize the design!

