@shd101wyy/yo 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/skills/yo-syntax/syntax-cheatsheet.md +1 -0
- package/out/cjs/index.cjs +332 -324
- package/out/cjs/yo-cli.cjs +497 -489
- package/out/cjs/yo-lsp.cjs +491 -483
- package/out/esm/index.mjs +438 -430
- package/out/types/src/evaluator/context.d.ts +6 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/std/{env/index.yo → env.yo} +11 -11
- package/std/{glob/index.yo → glob.yo} +2 -2
- package/std/{log/index.yo → log.yo} +3 -3
- package/std/string/string_builder.yo +35 -0
|
@@ -125,6 +125,7 @@ impl(Counter,
|
|
|
125
125
|
- Use `Self` in method signatures and in type definitions for recursive references (the type name is not available during its own definition)
|
|
126
126
|
- `Self` also works inside generic type constructors — it refers to the current instantiation (e.g., `Tree(T)` inside `Tree`). Use `recur(args)` only when type arguments differ from the current instantiation.
|
|
127
127
|
- Wrap `fn` types in parentheses when they appear after `:`
|
|
128
|
+
- **Forward references between methods in the same `impl` block are supported.** A method defined later in the block can be called by a method defined earlier. Both `self.method()` and `Self.method(...)` dispatch work. Only the canonical `name : (fn(...) -> R)(body)` method shape participates; bare lambdas do not get forward-ref shells.
|
|
128
129
|
|
|
129
130
|
### Named arguments and default values
|
|
130
131
|
|