You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The make-pro-con function can just return another function that then gets assigned to the pro-con variable.
This would guarantee cohesion without need for more in depth code review, and would also allow the make-pro-con function to parse the arguments first, allowing for error handling. This might also help us close #28 , since it would allow us to handle incorrectly passed arguments in once place, instead of on a per-component basis.
The end goal would be to make switching themes guarantee to work without compiler errors.
The text was updated successfully, but these errors were encountered:
This would have similar benefits to standardizing components, as we could better handle incorrectly passed in type parameters, which is one of the most common problems users need help with (also helping us resolve #28).
The main issue with this would be that we would have to standardize the parameters to type in some way, which might cut down on the customizeability of themes.
It might be a good idea to standardize the user facing component API so that we can guarantee component compatibility across themes.
I propose we do this with some sort of component constructor function. Here's an example:
The make-pro-con function can just return another function that then gets assigned to the pro-con variable.
This would guarantee cohesion without need for more in depth code review, and would also allow the make-pro-con function to parse the arguments first, allowing for error handling. This might also help us close #28 , since it would allow us to handle incorrectly passed arguments in once place, instead of on a per-component basis.
The end goal would be to make switching themes guarantee to work without compiler errors.
The text was updated successfully, but these errors were encountered: