Comments (4)
Void
it is.
See: https://aiken-lang.org/language-tour/primitive-types#void
from aiken.
Thanks for the reply @KtorZ. However, I still don't understand why that should be called Void
rather than Unit
. I would expect those two types to have different semantics.
I think it could be beneficial to mention this explicitly in the docs you linked, maybe adding some examples around the semantics of matching against this type.
from aiken.
You're probably expecting Unit
because you come from the Haskell world, I assume? If that's the case, then, well, we just have a different semantic than Haskell :).
We could potentially add a small note to the website documentation for the Haskellers, feel free to make a PR 👍
from aiken.
Yeah, you are right. But I would expect a lot aiken developer to come from a Haskell background as well :)
I did not know that other languages use the same convention (just found this https://en.wikipedia.org/wiki/Unit_type) thanks for pointing that out!
from aiken.
Related Issues (20)
- aiken/string causes compilation error HOT 1
- lsp panic on bad field HOT 4
- A problem with Testing failures. Proposed solution: Change `fail` keyword to use it with expressions. HOT 7
- Union types HOT 1
- libssl issues post 1.0.26-xxx (can't upgrade to 1.0.28/1.0.29) HOT 3
- aiken tx rerun with traces inplace HOT 4
- not implemented: MkCons and MkPairData should be handled by an anon function or using [] or ( a, b, .., z) HOT 1
- aiken fmt bug HOT 2
- using side effects HOT 4
- Include return type in aiken export
- Pair missing from plutus.json definition HOT 1
- aiken output not cip57 compliant HOT 2
- Data missing from CIP57 specification HOT 1
- uplc - misleading error message returned by `eval_phase_two`
- Add a compatibility table for UPLC crate (AST versions, builtin versions, Plutus language versions)
- `aiken fmt` moves comment up to the wrong line
- aiken blueprint apply truncates output HOT 1
- Aiken bluprint remove traces
- tx simulate - fatal error HOT 1
- Error: Unknown type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiken.