Hello,
I only checked Result and Option traits TS implementations and tests so far but it looks really nice !
(I might use these trait implementations for personal TS projects - if it's ok with you :))
Do you know if a minor refactor would be possible, so that we can use :
const x: Option<number> = None;
instead of
const x: Option<number> = None();
Maybe by renaming None type to NoneType type and use a trick to avoid a function call when storing None into an Option variable
(but idk, maybe there is a cleaner way of implementing this) ?
Sorry if i bore you with syntax details but if possible, i would like to stick with rust syntax.
Note 1 : i don't know which is the best implementation for Result/Option : Unions types + function implementation or Class implementation, but so far what you wrote with Classes looks coherent
Note 2 : i have to play a bit with crab-ts in order to see if there are some possible extensions (handy promise handling/await, etc)
And whatever i say, still great work !
Best regards