Replies: 4 comments 5 replies
-
is |
Beta Was this translation helpful? Give feedback.
-
I think that we can define attr just like [auto_gen_function] |
Beta Was this translation helpful? Give feedback.
-
... or use a simple hardcoded list I don't think there's many of these? |
Beta Was this translation helpful? Give feedback.
-
Hard-coded == bad. Always. Maybe not right away, but unless it's a Universal Constant (like PI, or Avogadro's Number, etc.), nothing should ever be hard-coded in software. It doesn't take that much extra effort to make it more flexible, then you never have to worry about it again. |
Beta Was this translation helpful? Give feedback.
-
Some methods like .index and .contains are autogenerated during cgen, and not present in source code form.
This presents a discoverability problem, because tooling like
v doc builtin
and vls (which work over the AST, before it is passed to cgen) will not see them, and thus not produce information about them.How should V handle this problem?
Beta Was this translation helpful? Give feedback.
All reactions