🪟 Windows TippsSeptemberaktion: Office 2024 für 28 Euro & Win 11 ab 10 Euro(17.09.2026 um 13:28 Uhr)
🪟 Windows ServerAuch Druckerprobleme nach September-Updates - Swiss IT Magazine(17.09.2026 um 16:32 Uhr)
🪟 Windows ServerWindows Update sperrt Domänen-Nutzer aus | Nau.ch(17.09.2026 um 16:36 Uhr)
🪟 Windows ServerKB5124008 Domain Trust Fehler: Ursache und Fix - WindowsPower.de(17.09.2026 um 17:18 Uhr)
🪟 Windows TippsSeptemberaktion: Office 2024 für 28 Euro & Win 11 ab 10 Euro(17.09.2026 um 13:28 Uhr)
🪟 Windows ServerAuch Druckerprobleme nach September-Updates - Swiss IT Magazine(17.09.2026 um 16:32 Uhr)
🪟 Windows ServerWindows Update sperrt Domänen-Nutzer aus | Nau.ch(17.09.2026 um 16:36 Uhr)
🪟 Windows ServerKB5124008 Domain Trust Fehler: Ursache und Fix - WindowsPower.de(17.09.2026 um 17:18 Uhr)
🔧 Programmierung 🕛 vor 2 Monaten 2 Min Lesezeit
0

Signal: misusing a language feature

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

I saw a new library, . Basically the idea was to create generics that weren't enforced by the runtime. This is how static analysis tools like PHPStan use generics. But because there are differences in the keywords, the comments are not usable cross tool unless there is an extension that picks up the differences.



The main reason I brought it up here is because a far as I know nobody looked at attributes as a path forward to a unified way to define generics.

I think generics in the way that it is represented in the RFC it moves beyond being a comment, but at the same time I don't think it is actionable enough to be a language feature.






The library viewed from a DocBlock perspective



PhpStan uses the @template keyword to define a generic, which means of years people have extended the PHPDoc reference for their own benefit.



Would it be such a stretch to extend PHPDoc with the keywords you want to generate more structured context bound documentation?

There is already an @throws keyword so the Throws attribute is just doubling up the ways to provide documentation.






The library viewed from a framework/library perspective



The Route attribute is used by Symfony, so to use the library attribute an alias is needed to not interfere with the way the framework operates.



The attributes are very generic so the change that they need aliases is very high when a project is using multiple libraries.

I don't see a problem when a library adds an attribute with the same name if it provides functionality. But for documentation this goes too far.






Conclusion



I think the underlying idea is good, provide a way to generate more focused documentation. It is the implementation that I don't agree with.



It feels like an idea fixed on doing something with attributes, than a look at all the options plan before starting to build the solution.

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Avision AD7100 & AD7100N - Dreifach kontrolliert gegen Doppelblätter und Papierstau
1 Quelle
Windows Server 2022: Mainstream-Support endet am 13. Oktober - ad-hoc-news.de
1 Quelle
Lenovo ThinkAgile VX850 V4: Neue Infrastruktur für KI und Virtualisierung - ad-hoc-news.de
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Signal: misusing a language feature

Thematisch verwandte Begriffe: Signal, misusing, language, feature · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...