Skip to content

Commit

Permalink
Update Documentation “releasenotes”
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyanonymous committed Apr 3, 2021
1 parent 3e75a3e commit ee4451d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions content/en/docs/releasenotes.en.md
Expand Up @@ -8,6 +8,39 @@ description: |
draft: false
toc_hide: false
---
## v0.4.0(2021-04-03)

### New Language Feature

Struct type and type alias are introduced(#56).

```rust
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

- Fixed behavior of CLI when it could not find an input file path(#62,by @t-sin).

### Refactoring

- Some internal helper functions such as recursive variants are refined.


## v0.3.1(2021-02-25)

### Bugfixes
Expand Down
33 changes: 33 additions & 0 deletions content/en/docs/releasenotes.ja.md
Expand Up @@ -8,6 +8,39 @@ description: |
draft: false
toc_hide: false
---
## v0.4.0(2021-04-03)

### 言語機能

構造体型と、それに伴って型エイリアス構文が導入されました。以下のサンプルのように使えます。

```rust
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()
```
構造体型にはまだいくつか不完全な部分もあります。

- 構造体やタプルのメンバとして関数を指定した場合は、クロージャ(引数以外の自由変数を含む関数)を代入することができません
- `hoge.a = 100`のような構造体への破壊的代入構文はパーサー部分のみ実装されていますが、コード生成部分が未実装です。

### バグ修正

- CLIへ存在しないファイルの相対パスを渡した時の挙動がおかしかったのを修正しました。(#62,by @t-sin).

### リファクタ

- 再帰バリアントなど内部的に使われているヘルパーテンプレートクラスをリファクタリングしました。


## v0.3.1(2021-02-25)

### Bugfixes
Expand Down

0 comments on commit ee4451d

Please sign in to comment.