Replies: 2 comments
-
|
Types are currently not a goal of Phel. A complete type system is a lot of work and is currently not doable in the current state of the project. However, It may also possible that someone else in the community can work on it Independently from the Phel team. As we can see with Clojures core.type or with PHP's Psalm and PHPStan, optionally type system can be implemented as a library. |
Beta Was this translation helpful? Give feedback.
-
|
It might not be a full typed system, but now you can define your own structs and interfaces in phel, so it's somehow related to this topic. Check this out: https://phel-lang.org/documentation/interfaces/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What do you think of exposing declared types in phel-lang that leverage php8's types?
Some inspiration:
hylang/hy#2030
https://github.com/racket/typed-racket
https://github.com/pflanze/chj-schemelib
https://github.com/clojure/core.typed/wiki
Beta Was this translation helpful? Give feedback.
All reactions