Design a templating system for language constructs #4

Open
opened 2025-12-18 21:37:11 -05:00 by yukirij · 0 comments
Owner

Templating allows developers to define classes, functions, and other constructs that can operate on a variety of data types.

While compile-time template resolution is the baseline target, implementation should consider dynamic template resolution.

Considerations

  • Trait-based constraints (ref: Rust)
  • Parameters may be of any constant type and may provide default values.
  • Template types will likely be appended to record type tags, requiring expansion of the tag system.
Class<A> {
  data :A
}
Templating allows developers to define classes, functions, and other constructs that can operate on a variety of data types. While compile-time template resolution is the baseline target, implementation should consider dynamic template resolution. **Considerations** - Trait-based constraints (ref: Rust) - Parameters may be of any constant type and may provide default values. - Template types will likely be appended to record type tags, requiring expansion of the tag system. ``` Class<A> { data :A } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Suzu/suzu#4
No description provided.