-
```
use "collections"
use "itertools"
primitive Combinatorics
fun choose(n: USize, r':USize): USize =>
let r = r'.min(n - r')
// this code fix compiles and executes as expected
// le…
-
This would make conditional compilation possible as we currently have for the platform (windows, darwin, linux, ...) but for different pony versions for which there might exist breaking changes in the…
-
if attempting to populate a larger file (3 million lines vs 350k lines) the fix-generator's slow down to crawling speeds
-
I'm opening this ticket to capture some important discussion from another ticket, which got dropped when that ticket was closed: https://github.com/ponylang/ponyc/issues/1331#issuecomment-256494016
…
-
-
When all member types in an union implement a function with the same number of arguments and the same return type, but one of them has a default argument, as follows:
```pony
class Foo
fun stri…
-
- https://github.com/philburk/pforth
-
The following code:
```pony
actor Main
new create(env: Env) =>
test[U8]()
fun test[T: U8](): (U8 | None) =>
iftype T
^
```
The actual code generation failure is here:
…
-
The following setup:
```
interface State[S, I, O]
fun val apply(state: S, input: I): (S, O)
fun val bind[O2](next: State[S, O, O2]): State[S, I, O2]
```
doesn't typecheck. The compiler c…
ghost updated
4 years ago
-
Probably related to #3727, this code causes the compiler to crash:
```pony
primitive Foo
fun test(f: U8 = (256)) =>
None
actor Main
new create(env: Env) =>
Foo~test()
```
``…