Type System #590
Replies: 2 comments
-
|
What I understand is that you also need min max operators for the Number type. BigName() // Constructor name like in Haskell, Rescript and OCAML. We are in the need of creating opaque data types utilizing other types. And a record is not a new type so we need data constructors like in all functional languages. I have been designing this to create the function bindings. Example: Those declarations are not accessories. Because to resolve the correct function in bindings, we have to do type checking. One more note. I am bringing in full type expressions because of lambda functions. I even need the type binding like in Haskell. The simple idea of having simple inputs, outputs is not sufficient for them. Another suggestion. I can change the type syntax not to be Haskelish: The main reason I wanted to have it in the language syntax instead of a type DSL is that I need to write a ton of tests. Test wont be readable and will take much more time to write. Adding just a little bit of syntax is much less work. (edited) |
Beta Was this translation helpful? Give feedback.
-
|
Just one thing bugs me. As long as it is us that build all the functions on opaque types, there is no problem. However, the user should have the ability too if necessary. This might be the reason to create a module keyword in the future. Opaque types are transparent in their own module... This is not an urgency... Just a visualization of future... All types that use a Constructor will be opaque |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be useful to have simple type declarations. The main purpose of this is for "estimation declarations".
Beta Was this translation helpful? Give feedback.
All reactions