Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default constructors for simplicity #330

Open
TheCarpetMerchant opened this issue Mar 4, 2024 · 0 comments
Open

Default constructors for simplicity #330

TheCarpetMerchant opened this issue Mar 4, 2024 · 0 comments

Comments

@TheCarpetMerchant
Copy link

Please provide a setter function on cells to easily set values, such as :

//...
cell.set('value');
cell.set(10);
//...

The setter using type checks to instantiate the correct CellValues. This will also help give the correct "cell style", because if I'm honest I can't be bothered to set a cell style for every int cell. The cells should at the very least have a default style if you want this system.
You made a type-driven system, which is great, but that means you type system must make it impossible to create values which inevitably throw Exceptions (such as cell.value = IntCellValue(10);).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant