FuncSug: To make GUI programming easier

https://github.com/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?

34 points · 2 comments · view on lemmy.world

2 Comments

crmsnbleyd@sopuli.xyz · 2 pts · 1y (1 reply)

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 ...---?

cli345@programming.dev · 1 pts · 1y

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