← nimrepo

update stuff

4221492aa93c570a96d69a6890aa97db8277cba0 · ovidiucs · Feb 20, 2019 14:32

+3 −1 · 1 file changed

  • generics1.nim => generics_stuff.nim +3 −1
diff --git a/generics1.nim b/generics_stuff.nim
similarity index 77%
rename from generics1.nim
rename to generics_stuff.nim
index 759cd68..89fd3f6 100644
--- a/generics1.nim
+++ b/generics_stuff.nim
@@ -7,9 +7,11 @@
 ## * Generics are a type based macro system on top of another macro system.
 ## * Generics are some what similar to c++ templates
 ## * Generics are typechecked after expansion.
+## *  generics are checked at instantiation time
 ## * Generics are a way to create code that works on a range of type.
 ## * The usage of T within the generic function is what defines the typeclass so to speak.
-
+## * in general generics are just something like type "variables" : e.g. proc reprT (value: T): 
+##   string makes something with value for every possible T type
 proc `+`(a,b: string): string =
     a & b