• @luciferofastora@lemmy.zip
    link
    fedilink
    210 months ago

    That’s an awful idea and you are an awful person for suggesting it.

    …and I am an awful person for considering the idea

  • Dandroid
    link
    fedilink
    14
    edit-2
    10 months ago

    Make it so the capitalization affects the scope.

    Oh wait.

    (Sorry, I recently had to switch to golang for work, and I’m just not used to it yet, and I’m getting annoyed by some of these design decisions)

  • Sparky
    link
    fedilink
    610 months ago

    What if every variable would have to use a pointer that points to a reference of the data in a central array. In normal languages you’d need a variable to store said array, but what if it too has to reference itself in itself, so we get some funky recursion.

  • Sunoc
    link
    fedilink
    2410 months ago

    Make it purely functional, lisp based with reversed Polish notation and APL symboles, I dare you mf

    • @AdamEatsAss@lemmy.world
      link
      fedilink
      1310 months ago

      I think white space should be used to represent basic functions too. For example 3 spaces can be used to sum two values while 4 spaces can be used to subtract.

      • @nicolauz@feddit.de
        link
        fedilink
        210 months ago

        Yes, however indentation still defines block and the operator (white space in same cases) has to come right after the white space for the indent

  • Rose
    link
    fedilink
    1310 months ago

    Just today I heard someone whining about how in LinkedIn and other recruitment sites there’s like five bazillion profile tag options for RDMBSes and various dialects of SQL… when in actuality the recruiters are probably only concerned if the developer can do a bloody SELECT and stuff.

    • @AdamEatsAss@lemmy.world
      link
      fedilink
      210 months ago

      I like this but to make the code more readable the Greek question mark should also be placed upsidedown at the start of every line that needs to not be printed.

        • @AdamEatsAss@lemmy.world
          link
          fedilink
          310 months ago

          I agree. If there is no Greek question mark at all it should be code that is printed to console. If there is an upside down at the start and upside right at the end it is just normal code. If upside right at the end only, it is a comment. Only upside down at the start it will be treated as debug specific code and will not be run in production compilations.

          • Beautiful its perfect. We should also nudge the develop in the right direction with equality checking im thinking we say √10 = √g = π = 3 = e but we will use === for this and if u want o check exact values u need to use ==== and == will be to assign variables so = can be used as an operator for dedining an equation that happens to be an object.

  • Australis13
    link
    fedilink
    1810 months ago

    Make sure it’s not whitespace sensitive and requires explicit typing, just to mess with everyone.

  • Manucode
    link
    fedilink
    12010 months ago

    It uses XML-like syntax:

    <fun>
      <name>sum</name>
      <in>
        <int>foo</int>
        <int>bar=0</int>
      </in>
      <out><int>foo+bar</int></out>
    </fun>
    
    • @VitaminF@feddit.org
      link
      fedilink
      4610 months ago
      <fun>
        <name>sum</name>
        <in>
          <int>
            <name>foo</name>
          </int>
          <int>
            <name>bar</name>
            <default_value>
              <int>0</int>
            </default_value>
          </int>
        </in>
        <out>
          <int>
            <calculation>
              <numerical_operation>
                <operator_plus>
                  <operand>
                    <var>foo</var>
                  </operand>
                  <operand>
                    <var>bar</var>
                  </operand>
                </operator_plus>
              </numerical_operation>
            </calculation>
          </int>
        </out>
      </fun>
      
    • @notabot@lemm.ee
      link
      fedilink
      1910 months ago

      I like it, this is clearly very enterprisey and solution focused, but I would like to suggest a couple of amendments if I may?

      • Namespaces We should make full use of namespaces. Make the structural tags be in a language specific namespace (to be referenced in every function spec, obviously) but change the in an out params to use the parameter name as the tag, namespaced to the function they’re for, with a type attribute.

      • In memory message queues Have all function invocations be marshaled as xml documents posted to an in memory message queue. Said documents should use a schema that validates the structure and a function specific schema to validate the types of arguments being passed. Namespace everything.

      I reckon we could power a medium sided country if we could generate energy from the programmers despair.

    • @lone_faerie@lemmy.blahaj.zone
      link
      fedilink
      English
      210 months ago

      That’s basically how the Android app Tasker works. You do the programming through its UI, but when you export/share your tasks, they’re saved as xml

    • JackbyDev
      link
      fedilink
      English
      1010 months ago

      Make sure to make ample use of mixed content elements.

      <statement><var>bar</var> = <int>0</int></statement>
      
      • A Phlaming Phoenix
        link
        fedilink
        510 months ago
        statement: 
          comparison:
            - kind: libcompare.EQUALS
              comparators:
                - foo
                - bar
              whentrue:
                statement: 
                  streaming: 
                    - kind: libstreams.PRINT
                       content: foo equals bar
              whenfalse:
                statement: 
                  streaming: 
                    - kind: libstreams.PRINT
                       content: foo does not equal bar
        
    • @A_Very_Big_Fan@lemmy.world
      link
      fedilink
      English
      210 months ago

      I took every coding class my highschool offered, and the only thing that drove me more crazy than this syntax was trying to use CSS.

    • @Pilon23@feddit.dk
      link
      fedilink
      1910 months ago

      Can you please link to a medium article on how this will help utilize AI blockchain so i can show it to management on Monday?

    • @ZILtoid1991@lemmy.world
      link
      fedilink
      210 months ago

      I almost did similar with SDLang as I was very desperate for a scripting language, but now I have a wasmtime API for D.

  • Terrasque
    link
    fedilink
    710 months ago

    And just to top it off, make this pythonscript a dialect of rust