-
```pony
class Double
let _a: Array[U8 val] = []
let _b: Array[U8 val] = []
new create(a: Array[U8 val] val, b: Array[U8 val] val) =>
for byte in a.values() do
_a.push(byte)
…
-
```pony
interface A[T]
actor Main
new create(env: Env) => None
fun a[T](xs: ReadSeq[T]): A[T] ? =>
// works if replaced with
// let err: box->T = xs(0)?
let x = xs(0)?
…
-
We want to revisit the way we do recover typechecks, using a system like what @plietar proposed in https://github.com/ponylang/ponyc/pull/2043#issuecomment-319835433.
This would let the compiler to…
-
As discussed on the sync call, we want to audit the `Seq` interface, as it currently contains a lot of methods that make extra assumptions about what kind of sequence is being dealt with, whether it h…
-
As discussed on today's sync call, due to @Theodus finding a standard library breakage in the planned fix for https://github.com/ponylang/ponyc/issues/2182#issuecomment-335878405, I think that adding …
-
# Summary
While trying to build a simple "event sourcing" style application I ran into problems with tuple matching.
Essentially if I build a tuple as a literal:
```pony
let cc: Change = ((0,…
-
pony has syntax for recovering rcaps
```pony
let s = recover iso String end
```
-
The "gold" linker is being used on Linux, but Gentoo devs dropped support for it, after declaring it dead upstream: https://bugs.gentoo.org/936112
Replacing it with an external "lld" is as easy as:…
-
Inside ``pony_deserialise_offset``, If no type is defined for the deserialisation, the type is read from the serialized stream:
https://github.com/ponylang/ponyc/blob/b1fe1a06bd1404e4d5c0b56dcc26a8…
-
https://github.com/ponylang/ponyc/blob/58134d152503147e7980404990252136dd7b6cc6/src/libponyc/type/lookup.c#L56-L68
This code is a bit bogus. *If* opt can be NULL, the declaration `typecheck_t* t = …