-
We should consider requiring a type annotation of Syntax.VarD other-wise there is no principal type for a var declaration.
```
var x = 0
```
can give x : `var Nat` or `var Int` (if we weaken th…
-
## Observation
The balance could have changed by the time of the transfer out and updating of the invoice.
Consider if Alice pays an invoice I of 1 ICP created by Bob in two installments of 1 ICP …
-
E.g. `case 3.14 { ... this looks like Pi ... }` should be forbidden. `Float`s do not admit exact matching.
Thanks to @crusso for checking!
-
We want to embed HTML, CSS, and JavaScript assets into our Motoko source code. Would it be possible to create a macro that would allow us to do that? Specifically, we want something similar to `includ…
enzoh updated
4 years ago
-
```
canisters : HashMap.HashMap<
// The principal of the canister.
Principal,
// The configuration of the canister.
CanisterConfig
>;
```
becomes
```
canisters : HashMap.HashMap…
-
The `Trie` module was written when the language was still very new, and has not been updated since.
As I think about what could happen to it in the future, here's what comes to mind now:
- (Espe…
-
Our documentation is lacking examples for the following features already documented in the language-manual.adoc.
This is a check-list to keep track of what's missing.
- [x] checking of all example…
-
Users currently have to write `Principal.fromActor(Foo)` to get the `principal` of an actor (including their own `self`). This is a bit silly, since an actor reference inherently is represented by a p…
-
https://forum.dfinity.org/t/arithmetic-overflow/7955
-
In this issue I’d like to design our initial type representation (typerep) design.
## What’s this?
The (run-time) type representation is a value at run-time that indicates a type.
## What for…