Open Maykeye opened 1 year ago
I guess I could have a list of types somewhere but then you would have to add to it every time you want to add a custom type.
Isn't it better for it to be like this?
Custom types aren't being added as often as they are being used, so having diagnostic would be good. When I mistyped "FlOAT" after copying node that makes const int, I thought for a moment that ints/floats are treated very differently, as nothing was reported.
Or maybe even drop string literals and use python types/wrapper classes. (int/str/float/Latent): right now if I get "LATENT", I have to dig into source code of nodes that use it to see what it really is. With string literals I can't use "go to reference" or use auto complete to see what I am dealing with
Consider
Right now I can add it to the graph normally:
There is no indication in the console or browser UI that something is wrong: