FuncSug: To make GUI programming easier

2 years ago by cli345 to c/programming

A scripting language that simplifies GUI programming in browser for more linear code in line with async/await and structured concurrency - cl4cnam/funcSug

Hi, I made FuncSug to make GUI programming in the browser easier. It's a new language that aims to enable a clearer and easier code structure.

Can you tell me what you think about it?

load all comments
crmsnbleyd 2 points 2 years ago

I love the idea! I would suggest adding a native representation of HTML tags so that the programmer doesn't have to construct them through strings.

The example of choices also looks a bit tough to me, but that's just personal preference. What inspired you to use something like ...---?

path: 0 15410862, hotness: undefined, score: 2, children: 1
cli345 1 point 2 years ago

Thank you for your very useful feedback :)

A native representation of HTML tags is a good idea: I'll have to do that.

For ...---, I wanted a big split symbol between branches (||========) and a small split symbol between the two steps inside a branch (...---). ... because the branch continues and --- to mark a smaller split than ==========.

I intend to add a syntaxic sugar for:

parallel(select N) ||
||==============
    myFunction(arg1,...,argM)
...--------
    restOfBranch1
||=============
    myFunction(arg1b,...,argMb)
...-------
    restOfBranch2

that would be:

choose N by myFunction
    * arg1,...,argM
        restOfBranch1
    * arg1b,...,argMb
        restOfBranch2
path: 0 15410862 15424879, hotness: undefined, score: 1, children: 0
programming
programming

@programming.dev

login for more options
28803
3719
3327

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev


go to feed...