Hi, the question is in the title, here's a sample:
type `!`* = enum A B C
proc stuff(p: !): void = echo p # (3, 16) Error: expression expected, but
found ')'
and another:
type
`?`*[T] = object of RootObj
case isDefined* : bool
of true : value* : T
of false : nil
proc some*[T](val: T): auto =
?[T](isDefined: true, value: val)
proc none*[T](): auto = ?[T](isDefined: false)
proc `$`*[T](option: ?[T]): string = #(12, 23) Error: type mismatch: got
(array[0..0, T]) but expected '? = CompositeTypeClass'
if ?option : result = "some(" & $option.value & ")"
else : result = "none"
Thanks!