ReaCSS / ReaCSS-replit

repl.it version of Reacss
MIT License
0 stars 0 forks source link

Language Features #1

Open ENvironmentSet opened 4 years ago

ENvironmentSet commented 4 years ago

We need to discuss about Language Features so that we can start developing.

Here is language features that I have imagined.

I've grouped language features by where they live. i.e. Type-Level world, Term-Level world(where reactivity and any kinds of side effect doesn't exist, ruled by pure FP) and Reactive world(where ruled by FRP and it's primitive operations & datatypes).

Ailrun commented 4 years ago

I think type classes are bit too much... It would take at least a month. Comments will take (literally) less than an hour if we decide the syntax.

What do you mean by Overloaded Literals and Labels?

ENvironmentSet commented 4 years ago

They're just as same as GHC's one. I had hoped literals to be polymorpic so that we can do much more declarative programming. But it seems not possible since their mechanical base, type classes can't be developed before deadline.

ENvironmentSet commented 4 years ago

Anyway, You've told me about an idea that implementing functions in reactive world with ReaXML and ReaCSS, could you provide me some examples?

By the way, I hope not to use ReaXML for declaring some computational-thing(i.e. non-presentational thing). Their syntax is not good for doing that(trust me, I've tried it for a year in 2017~2018). So let's try with ReaCSS first.

ENvironmentSet commented 4 years ago

ReaCSS Core

Syntax

Core Library

FRP-Prims (Primitive Operations for FRP) Text Library Number Library Boolean Library FP Library?

Semantic

ReaXML (Universal Declarative UI Language)

Basic Elements