Skip to content

Should DSLX be even Rustier? #526

@lachlansneff

Description

@lachlansneff

It seems like dslx is already similar to Rust at a surface level, but there are cases that are different for no apparent reason.

For example, why are arrays T[N] instead [T; N], like in Rust?

Should types have methods like in Rust? It would certainly make a lot of code cleaner.

struct F32 { ... }

impl F32 {
    fn add(self, other: F32) -> F32 { ... }
    // ...
}

What about traits and operator overloading?

Metadata

Metadata

Assignees

No one assigned

    Labels

    dslxDSLX (domain specific language) implementation / front-endenhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions