Hacker News new | past | comments | ask | show | jobs | submit login

> oh, that's not really type annotations; that's just... cli linting?

I think it sort of is, depending on one's point of view. I mean, at the end of the day, a CLI encantation in a Bash script or Dockerfile is not really different from a function call in your Python/Java/whatever code, only that your interface is not an API but an ABI wrapped inside a POSIX CLI. So the CLI takes on the role of the function signature.

The only problem is that a CLI is typically a very soft and error-prone interface. It might forgive errors, it might be inconsistent etc. etc. This is certainly fine when you can iterate quickly on the command line. But for real programming? Not so much. For such purposes, proper (and properly typed) function signatures were invented. Whether or not you call matching/verifying function calls against function signatures type checking or linting is certainly up to you. :)

As for your project: Cool that you're working on this, and that you're using Zig! I'll visit again in a few months. :)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: