-
I've noticed the fact let is for immutable variables which is somewhat the opposite of its use in Javascript, to be a source of confusion.
I'd suggest adding a "Caution!" bulletin point explicitly…
-
I need a `compare` function for `Text` that is similar to what we have for `Nat`.
https://github.com/dfinity-lab/motoko-base/blob/6b6f7f217f245e3df17b9706ae07c737339db1f4/src/Nat.mo#L53
enzoh updated
4 years ago
-
I’ve been trying to help come up with a workaround to the problem encountered in this forum post:
https://forum.dfinity.org/t/queue-failing-heartbeat-stopping-canister-death-spiral/13328?u=paulyou…
-
to `bitShiftRight 31`
These happen frequently in the `Random.mo` code.
Note: this issue should be in `motoko` proper, but it ended up here by mistake. I cannot move it there.
-
Proposal to adopt [CBOR 1](https://cbor.io/spec.html) as a standard binary encoding & encapsulation format for message payloads.
I know it is used already in a number of IC code libraries & standards…
-
The Motoko guide has this simple example:
```
let z = {
let x = 1;
let y = x + 1;
x * y + x
};
printNat(z)
```
But it seems like maybe it doesn't quite work as-is? In the interpreter …
-
https://github.com/dfinity/motoko-base/blob/5c9145e79bf471fb662b9b4028937783e97e23d1/src/Buffer.mo#L68
As far as I understand the style guidelines this should be `size_` not `_size` because `_size`…
-
https://github.com/dfinity/motoko/blob/c6d1af06ea9c5751d1cde37ff94dbab97977e1f0/doc/md/language-manual.md?plain=1#L236-L293
In this section it seems that all binary operators are listed but not the…
-
https://github.com/dfinity/motoko-base/blob/8028da2d691151a3202d7539b5828a7a381f40c6/src/Principal.mo#L80
It is a little weird if the base library itself uses deprecated functions because it produc…
-
This is not really an issue. I tried to use it locally by using: client = Client(url="http://127.0.0.1:8000"), but this does not work. I am writing Motoko and python programs, but I do not fully under…