The whole TreeSitter architecture is such a trash fire, the faster people stop building things with it, the better.
soc
I believe that if you start from an annotation-only stance, then you will look at the language, its defaults and possible extensions differently, because annotations are "visually" more expensive than slapping yet-another keyword on something.
I. e.:
- "no visibility modifier" should probably mean "public"
- defining the external API should move to the module-level altogether
- we should probably use
varinstead oflet mut #[cfg(target_os = "windows")]is just bad design overall
instead put different targets into different folders: much easier, works betterasyncshould not exist at all
(though not related to annotations vs. modifiers, but because the whole idea is a language design dead-end)
So the code from your example would literally be ...
fun some_func: Unit = {
var my_var = 3u2
// ...
... in my design.
Rust's syntax with #[...] is not that great in this regard, as it triples the amount of symbol involved for simple annotations compared to something using @....
You do not have to agree with every blog post found on the internet.
I think you make a few good arguments, but you are way too angry for me to engage.
Then keep deceiving yourself. 🤷
If you haven't gotten the point by now, it's not a good investment of my time. Bye.
"Let's not have rules, because some may break them!"
🤡
The Hacker News thread sided overwhelmingly with the maintainer. Hard to disagree.
Not sure I'd buy that line of thought.
And? Why would I give a fuck?
So desperate about what other people think ... are you an American by chance?
I know what I "can just" do.
It's just missing most of the point of a shared hosting service then.
Are we now just bumbling random words together?
Probably slop all the way down.
Quotes "patent expert" Florian Müller ... just no.
Ok, then here's a short answer to your points:
If the language has annotations already, then you have paid the tax of having "special syntax" in your language in any case.
(Except Swift maybe, which has "attributes" and more than 200 keywords.)
I don't consider this a drawback. In fact, many languages with modifiers have the same rules about modifier placement.
I actually want annotations on their own line, such that all my actual keywords start at the same column.
Many languages with modifiers have the exact same issue, and address the issue the same way I'd address it for annotations:
Define a desired order of annotations and let the compiler/linter/IDE/formatter deal with it.
Let the IDE/editor pick a different color for you "more important" annotations, if you like.
That's just nitpicking the wording. Ok.
Then don't? Most languages don't make you import
Stringeither.Have a separate namespace for for annotations, or treat
@as part of the name.Though it's not something I would spend effort on – sometimes the best answer to "X does not work" is "then don't".
I replaced ...
... with ...
... in my language a short while ago. It's fine.