Measures Concepts
GitHub icon

Z-flat

Z-flat - Programming language

< >

Z-flat is a programming language created in 2021 by Adam Hutchings.

Source code:
git clone https://github.com/adamhutchings/zflat
#1395on PLDB 3Years Old

Z-flat is a compiled, statically-typed programming language. Its design goals are intuitive syntax, type-safety, and easy library management.


Example from the web:
~/ factorial /~ ~ recursive implementation ~ factorial_r(x: int): int { if (x < 2) { return 1; } else { return x * factorial_r(x - 1); } } ~ iterative implementation ~ factorial_i(x: int): int { ret: int = 1; loop(x): i: int { ret *= (i + 1); } return ret; }

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout