-
Generating fresh identifiers for desugaring is all very well, but it makes me uneasy that the identifiers are leaking into type, and inconsistently at that:
Consider:
```
[nix-shell:~/motoko/te…
-
Other language extensions allow me to CMD+Click on a function call, for example, to jump to the definition of that function. This does not work for Motoko when using this extension. I'd expect jumping…
-
```
seoraksan:motoko-dht enzo$ dfx start
⠁ Starting up the replica...
An error occured:
AgentError(
InvalidClientUrl(
"http://::1:8000",
),
)
```
enzoh updated
3 years ago
-
CI on https://github.com/dfinity/motoko/pull/2341 shows
```
tmp.mo:13.104-13.108: type error [M0050], literal of type
Null
does not have expected type
()
```
This indicates that the existin…
-
It seems that patterns allow literals to be preceded by `^`:
```
~/dfinity/motoko/test $ rlwrap moc
Motoko compiler (revision 0.5.6-22-g5562f5e1e-dirty)
> func foo(n : Nat8) : Bool { switch (n) …
-
Users out there ran into an exception: https://forum.dfinity.org/t/build-error-with-imported-actor-class/1931
They built a canister using `actor class…`, which produced this `.did`:
```
type anon…
-
```
~/dfinity/motoko $ echo '{ foo = 5 * 5 } : { foo : Nat64 };' | moc
Motoko compiler (revision 0.5.3-12-g84d34b505)
> stdin:1.1-1.16: type error, expression of type
{foo : Nat}
cannot produc…
-
So for example when I am using an RBTree, just looking at the code it looks as if everything is just stored in "memory". The tree can grow seemingly infinitely and I see no use of file systems or call…
-
In Motoko, we can define `type record = Nat;`, then this gets translated to `type record = nat;` in IDL. This cannot be parsed in the IDL compiler, as `record` is a keyword in IDL, but not in Motoko.
…
-