-
Notifications
You must be signed in to change notification settings - Fork 6
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
Type conversions complexity #18
Comments
What examples do we have for similar functionality in other languages? Will users understand they require a "conversion" or would they prefer working with target/source types? |
The closest I can think of is SQL (Transact SQL is very well documented in general terms) Other remotely similar approaches, I don't recall languages with formatting on the type system, the following are libraries: Those are have some common patterns. In uncommon cases conventions vary tho. |
We should not forget that the compiler knows that after |
One of the things that I struggle the most is type conversions that are not trivial. This means that requires
Parameters
For example converting a DateTime
toEpoch
Or toMillis
Or converting a Date to String
I think all this transformations are not that hard to understand what it does when you read it but are very hard to remember how to do it. It requires to now one this new syntax of how to pass arguments to the type conversion.
Questions
The text was updated successfully, but these errors were encountered: