Simon Wegendt

Results 45 issues of Simon Wegendt

# Introduction Events are at the very heart of Mita. They map well to the IoT world where devices often have to lay dormant until some event arises. Events are...

RFC

If users modify the generated C code they can no longer use Mita as that would overwrite their changes. Our goal however, is to provide a jump-start for C development...

Prio.Low

This: ``` var foo = new array(size = 10); struct s { var a: array; } var bar = s(foo); ``` generates this: ```c int32_t data_foo_0[10]; array_int32_t foo = {...

Bug

You can't write this: message: "mismatched input '>>' expecting '>'" ``` var y: array; ``` This is not an issue currently, since optionals will forbid nested generated types anyway. Not...

Bug
Prio.Low

A function like ``` fn inc(x: int32): int32 { return x + 1; } ``` doesn't need to be checked for exceptions in the callee, and doesn't need to return...

Optimization

# Introduction Yesterday I read an interesting [blog post on how Midori-C# handles errors](http://joeduffyblog.com/2016/02/07/the-error-model/). It boils down to the fact that there are two kinds of errors: - Exceptions, like...

RFC

One of the first things I wanted to try is: ``` every button_one.pressed { let myList = [1, 2, 3]; for (var i in myList) { print(`${i}`); } } ```...

The following code produces several issues while linking. Removing the `&array` "fixes" the issue. ``` package main; import platforms.xdk110; struct SensorMessage { var accX : int32; var accY : int32;...

Bug

The following code can not resolve `addr`: ``` package test; import platforms.xdk110; let addr = "localhost"; setup endpoint: WLAN { psk = addr; ssid = addr; } ``` While in...

Usability

The following code doesn't need unraveling, but is unraveled: ``` package foo; import platforms.xdk110; fn test(): int32 { return 1; } fn asdf() { var x = 0; x =...

Usability