Open deepfire opened 7 years ago
Current list of candidates for creative newtype
-ing:
PipelineSchema.uniforms
)PipelineSchema.objectArrays
)slotName
arg of Input.addObject
, also in GLStorage.slotMap
)attribs
arg of Input.addObject
)@csabahruska, would you like to outsource this somewhat massive refactoring, or would it be less trouble for you to do it yourself?
Seeing how this touches three projects at once:
lambdacube-ir
, because of PipelineSchema
lambdacube-gl
, because of above and GLStorage
and attribute-related typeslambdacube-quake3
, because of all of the above and still more that I didn't mention here..I can imagine that it can be quite daunting..
Thanks for the feedback. I agree it's a good idea to use newtypes for these names. I can do the refactoring in 3-4 days.
This will take more time, because I have to add newtype support for the Data Definition Language EDSL, that is used to generate lambdacube-ir for multiple languages (hs, purs, c++, java, etc.)
The abundance of
String
-typed objects passed around makes it more difficult to navigate the project.