https://github.com/euantorano/compile-time-string-validation
Companion repository for my "Validating strings at compile time" log post
https://github.com/euantorano/compile-time-string-validation
compile-time-checking dlang nim zig
Last synced: 4 months ago
JSON representation
Companion repository for my "Validating strings at compile time" log post
- Host: GitHub
- URL: https://github.com/euantorano/compile-time-string-validation
- Owner: euantorano
- License: bsd-3-clause
- Created: 2020-06-09T22:23:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T07:21:13.000Z (about 5 years ago)
- Last Synced: 2024-12-30T21:31:54.449Z (6 months ago)
- Topics: compile-time-checking, dlang, nim, zig
- Language: Zig
- Homepage: https://www.euantorano.co.uk/posts/compile-time-string-validation/
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compile Time String Validation
Companion repository for my blog post ["Compile Time String Validation"](https://www.euantorano.co.uk/posts/compile-time-string-validation/)
This repository contains code for a couple of implementations of a dummy `pledge` function (based upon the [`pledge(2)`](https://man.openbsd.org/pledge.2) system call in OpenBSD) that validates its arguments at compile time rather than run time.
The aim is to explore the compile time facilities of different languages.
## CI Status
| Language | Status |
| -------- | ------ |
| D | [](https://builds.sr.ht/~euantorano/compile-time-string-validation/commits/d.yml?) |
| Nim | [](https://builds.sr.ht/~euantorano/compile-time-string-validation/commits/nim.yml?) |
| Zig | [](https://builds.sr.ht/~euantorano/compile-time-string-validation/commits/zig.yml?) |