This repository has been archived by the owner on Dec 22, 2024. It is now read-only.
v0.4.0
New Language Feature
Struct type and type alias are introduced(#56).
type stereo = (float,float)
type composite = {signal:stereo , id:float}
fn test2(){
ogya = composite{(100,200), 100}
ho,fu = ogya.signal
he = ogya.id
println(ho)
println(fu)
println(he)
}
test2()
Still struct type has several limitations.
- Embedding function type variable onto struct (and tuple) cannot be used for closure.
- destructive assignment for struct variable by dot operator is not implemented yet(only a parser is implemented).
Bugfixes
Refactoring
- Some internal helper functions such as recursive variants are refined.