Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmasoldi3r authored Dec 5, 2023
1 parent 47bd4b4 commit f97b2d2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,30 @@ let foo = "foo" --> "bar";
// Will yield "foobarbarfoo"
```

## Crazy stuff

You can even expect code like this:
```rs
let Comp = props => _<:div:>("Foo " ++ props.text ++ "!")</:div:>_;

let App = () => _
<:div:>[
"foo",
_<:hr:/>_,
_<:p:>[
"This is a paragraph",
" ",
"or two", // I know that div should not be a child of p
_<:div:>"yes"<:div:/>_,
_<:Comp { text: "bar" } :/>_
]</:p:>_
]</:div:>
_;
println(render(App));
```
To work in Saturnus! In fact that is a small react-like library currently
being written in Saturnus.

## Why replace Lua?

I like many aspects of Lua, specially how fast and lightweight the VM is. But
Expand Down

0 comments on commit f97b2d2

Please sign in to comment.