4 ms·
Can you show me an example of a language that does syntax checking of build-system related directives at compile time?
by giovannibajo1 5y ago
Can you show me an example of a language that does syntax checking of build-system related directives at compile time?
- grey-area 5y agoC++ #pragma, #include? Golang import statements? I see why they did this for the Go 1 guarantee, but would prefer if they used a keyword and had a defined restricted syntax for it. There are a growing number of these comments and they’re poorly documented and spread around different tooling. It’s kind of a hack. https://blog.jbowen.dev/2019/09/the-magic-of-go-comments/ https://blog.jbowen.dev/2019/09/the-magic-of-go-comments/
- kevin_thibedeau 5y agoNim. C++ attributes (coming soon to C).
- Groxx 5y agoZig. Rust. The others in this thread. There are quite a few. Go chose possibly the weakest-safety option of them all.