Skip to content

Commit 7f1b5f9

Browse files
authored
Create meta.wx
1 parent a174dc9 commit 7f1b5f9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • modules/std/syntax/primitives/variants
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
' Meta
2+
' 2024-01
3+
4+
'iDkP for GaragePixel
5+
' Meta is a syntactic sugar that helps clarify syntax
6+
7+
Namespace std.syntax.meta
8+
9+
'#Import "../../../types/types"
10+
11+
Using std.types
12+
13+
Function Meta<T>:Variant(v:T)
14+
'Macro used to light up the syntax
15+
Return Cast<Variant>(v)
16+
End
17+
18+
Function Meta<T,T2>:T(v:T2)
19+
'Cast a type to another one
20+
Return Cast<T>(v)
21+
End

0 commit comments

Comments
 (0)