Skip to content

Commit 61d2dd3

Browse files
Update directives-and-the-platform-boundary.md
1 parent f340dc7 commit 61d2dd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/blog/directives-and-the-platform-boundary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ But now we are watching a new trend emerge. Frameworks are inventing their own t
1616

1717
There is an important distinction: these are not standardized JavaScript features. Runtimes don't understand them, there is no governing specification, and each framework is free to define its own meaning, rules, and edge cases.
1818

19-
This can feel ergonomic today, but it also increases confusion, complicates debugging, and imposes costs on tooling and portabilitypatterns we’ve seen before.
19+
This can feel ergonomic today, but it also increases confusion, complicates debugging, and imposes costs on tooling and portability, patterns we’ve seen before.
2020

2121
---
2222

@@ -77,7 +77,7 @@ export const action = server(
7777
)
7878
```
7979

80-
APIs carry provenance (imports), versioning (packages), composition (functions), and testability. Directives typically don’t and trying to encode options into them can quickly become a design smell.
80+
APIs carry provenance (imports), versioning (packages), composition (functions), and testability. Directives typically don’t, and trying to encode options into them can quickly become a design smell.
8181

8282
---
8383

@@ -104,7 +104,7 @@ An example of where we've seen these struggles before is with decorators. TypeSc
104104

105105
### “Isn’t this just a Babel plugin/macro with different syntax?”
106106

107-
Functionally, yes — both directives and custom transforms can change behavior at compile time. The issue isn’t capability; it’s surface and optics.
107+
Functionally, yes. Both directives and custom transforms can change behavior at compile time. The issue isn’t capability; it’s surface and optics.
108108

109109
- Directives look like the platform. No import, no owner, no explicit source. They signal “this is JavaScript.”
110110
- APIs/macros point to an owner. Imports provide provenance, versioning, and discoverability.

0 commit comments

Comments
 (0)