We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a174dc9 commit 7f1b5f9Copy full SHA for 7f1b5f9
1 file changed
modules/std/syntax/primitives/variants/meta.wx
@@ -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
0 commit comments