asteroid icon indicating copy to clipboard operation
asteroid copied to clipboard

Asteroid is a modern, multi-paradigm programming language that supports first-class patterns.

Results 21 asteroid issues
Sort by recently updated
recently updated
newest added

The function `length` is not part of the object interface ``` ast> let o = A(1,2) ast> o @length() error: (id...) is not a member of type A ast> ```...

bug

The math@pow() function in implemented as `math @pow (b, p:%integer)` where p must be an integer. This is incorrect, p should be able to be either an integer or a...

The OS module's syscmd function makes a call to system() as part of its functionality, but one of the calls is `sytem` instead

The `list @map` [documentation](https://asteroid-lang.readthedocs.io/en/latest/Reference%20Guide.html#member-functions) currently reads, "Applies the function f to each element of the list in place. The modified list is returned." This does not match the observed behavior...

When trying to add a constant to a list we can an expected error, but the error message itself makes no sense: ``` ast> [1,2,3]+1 error: found 'list + integer'...

bug

We should create an additional test suite based on the programs in, https://www.geeksforgeeks.org/python-programming-examples/#moreprograms We should add these programs to the Asteroid in Action doc,

good first issue
enhancement

An idea on how to look at parameterized patterns. Currently Asteroid supports parameterized patterns via variables read from the environment, ``` Asteroid Version 2.0.1alpha (c) University of Rhode Island Type...

enhancement

The `in` predicate clashes with the `in` keyword in `for` loops necessitating the use of excessive parens, e.g. ``` for (x,y) if x > y in pairlist do assert(x>y). end...

bug

It is often convenient to express a pattern match on an object based only on a single field like ``` structure Person with data name. data age. data profession. end...

enhancement

We need a comprehensive way of testing the REPL. For right now, that basically means testing: 1. Simple statements 2. Multiline statements

enhancement