miniblog.

← Back to all posts
11
@maccatalan @badtuple That's a really interesting approach, but I worry it'd lead to subtle bugs. I also think that a first-class metadata annotation would be a good fit for things like inline-this-function instructions to the compiler, so I suspect you'd end up with them affecting the binary.

1 Comment

@wilfredh @maccatalan My impulse comes from the idea that comments belong to your users, not you. The contract of comments is that the compiler discards them. That's why they're abused by tooling all the time. Users can stuff metadata or docs or curse words in there and your language doesn't care. Purely from a user's perspective: If you want something in the language, put it in the language. If you're giving me an area and telling me it's mine then stay away from it.