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?

  • Drew
    link
    fedilink
    arrow-up
    2
    ·
    24 hours 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 ...---?

    • cli345@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      5 hours 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