hylo icon indicating copy to clipboard operation
hylo copied to clipboard

The Hylo programming language

Results 184 hylo issues
Sort by recently updated
recently updated
newest added

``` public type Foo : Regular { var i : Int init(){ &i = 3 } } public conformance Foo: Equatable { public fun infix== (_ other: Self) -> Bool...

It should be possible to synthesize the implementation of all traits inherited by `Regular` for types whose stored properties are known to be `Regular`.

Compile this with 3166db52: ``` fun f() { let x = fun (_ target: set T) -> Void { &target = src.copy() } _ = x } public fun main()...

See also: #1065 We should implement a layout algorithm for generation the binary representation of types with a record layout. We should probably use the [same algorithm as Swift](https://github.com/apple/swift/blob/main/docs/ABI/TypeLayout.rst). >...

We need a way to explain how a program can trap without making a system call when it is compiled with `--no-std`. We should probably take inspiration from Rust's [#[panic_handler]](https://doc.rust-lang.org/nomicon/panic-handler.html#panic_handler).

This program should compile: ``` type A: Deinitializable { public memberwise init public fun foo() {} public static fun foo() {} } public fun main() { A().foo() // error: ambiguous...

bug

This type declaration should not compile: ``` type A { fun infix&%!! (_ x: A) -> Void { () } } ``` Commit: 289ed31a49747a3bfbec14547e0ace165d72e3e0

bug

The current implementation doesn't duplicate declarations and simply let overload resolution fail.

We should use `sink` static properties to represent constant properties of types, like the number of bits available in a particular `BinaryInteger`. ``` public extension Int64 { public static property...